From " <" (none) Date: Tue, 12 May 2009 19:06:15 +0200 Subject: [PATCH] Fix cleanup procedure in the setuid04 test Cc: ltp-list@lists.sourceforge.net Cleanup has to be made only once in the parent process; when the child makes the cleanup itself, the parent has nothing to cleanup, which makes him sad. Add a tst_exit to the end of the child procedure, to make it not return and call cleanup (which would be otherwise called twice) Signed-off-by: Jiri Palecek --- testcases/kernel/syscalls/setuid/setuid04.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/setuid/setuid04.c b/testcases/kernel/syscalls/setuid/setuid04.c index 26a3868..97efbcb 100644 --- a/testcases/kernel/syscalls/setuid/setuid04.c +++ b/testcases/kernel/syscalls/setuid/setuid04.c @@ -173,6 +173,7 @@ void do_master_child() exit(WEXITSTATUS(status)); } } + tst_exit(); } /* -- 1.6.3.1