From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.74) (envelope-from ) id 1PorYy-0007pn-TR for ltp-list@lists.sourceforge.net; Mon, 14 Feb 2011 06:05:32 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.74) id 1PorYw-0004nJ-T2 for ltp-list@lists.sourceforge.net; Mon, 14 Feb 2011 06:05:32 +0000 Message-ID: <4D58C631.7040508@cn.fujitsu.com> Date: Mon, 14 Feb 2011 14:05:37 +0800 From: Peng Haitao MIME-Version: 1.0 Subject: [LTP] [PATCH] setfsuid04.c: the child process should exit 0 List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Garrett Cooper Cc: ltp-list@lists.sourceforge.net Hi Garrett, Signed-off-by: Peng Haitao --- testcases/kernel/syscalls/setfsuid/setfsuid04.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/testcases/kernel/syscalls/setfsuid/setfsuid04.c b/testcases/kernel/syscalls/setfsuid/setfsuid04.c index 9129892..cd230ff 100644 --- a/testcases/kernel/syscalls/setfsuid/setfsuid04.c +++ b/testcases/kernel/syscalls/setfsuid/setfsuid04.c @@ -93,7 +93,7 @@ int main(int ac, char **av) if (pid == 0) { do_master_child(); - + exit(0); } else { waitpid(pid, &status, 0); if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) @@ -103,8 +103,6 @@ int main(int ac, char **av) cleanup(); tst_exit(); - tst_exit(); - } /* @@ -244,4 +242,4 @@ void cleanup(void) tst_rmdir(); -} \ No newline at end of file +} -- 1.7.3.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list