In a child, calling waitpid() to wait for the death of sibling child is simply
non-sense. Moreover in execve05, the second child does not need such
synchronization. Remove it.

Signed-off-by: Louis Rilling <[EMAIL PROTECTED]>
---
 testcases/kernel/syscalls/execve/execve05.c |    3 ---
 1 file changed, 3 deletions(-)

Index: b/testcases/kernel/syscalls/execve/execve05.c
===================================================================
--- a/testcases/kernel/syscalls/execve/execve05.c       2008-06-02 
16:32:03.000000000 +0200
+++ b/testcases/kernel/syscalls/execve/execve05.c       2008-06-02 
16:34:22.000000000 +0200
@@ -171,9 +171,6 @@ main(int ac, char **av)
                                tst_resm(TPASS, "call generated expected "
                                         "ETXTBSY error");
                        }
-
-                       /* wait for the first child to exit */
-                       (void)waitpid(pid, NULL, 0);
                        exit(retval);   
                } else {        /* parent */
                         /* wait for the child to finish */

-- 
Dr Louis Rilling                        Kerlabs
Skype: louis.rilling                    Batiment Germanium
Phone: (+33|0) 6 80 89 08 23            80 avenue des Buttes de Coesmes
http://www.kerlabs.com/                 35700 Rennes


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to