From: Robert W. <ro...@us...> - 2002-07-17 15:01:12
|
I applied this fix to the CVS tree. We actually had a number of tests with this problem....this one must have slipped by us. Thanks, - Robbie Robert V. Williamson <ro...@us...> Linux Test Project IBM Linux Technology Center Phone: (512) 838-9295 T/L: 638-9295 http://ltp.sourceforge.net Carsten Langgaard <car...@mi...> To: ltp...@li... Sent by: cc: ltp...@li...ur Subject: [LTP] sysctl03 sometimes fails ceforge.net 07/17/2002 09:31 AM The sysctl03 sometimes fails when running through pan, but it never fails when running as a standalone test. I thing the problem is that, depending on how things are scheduled, the parent process sometime exit before the child process. Please take a look at the patch below, which seems to solve this problem. /Carsten --- sysctl03.c Mon Jun 10 17:16:36 2002 +++ test.c Wed Jul 17 15:35:24 2002 @@ -144,9 +144,13 @@ "error"); } } + + cleanup(); + + /*NOTREACHED*/ } else { /* parent */ - /* let the child carry on */ - exit(0); + /* wait for the child to finish */ + wait(&status); } /* set process ID back to root */ -- _ _ ____ ___ Carsten Langgaard Mailto:car...@mi... |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Ltp-list mailing list Ltp...@li... https://lists.sourceforge.net/lists/listinfo/ltp-list |