hi,

Any comments on the following patch?
Thanks.:)

Signed-off-by: Tang Chen <[email protected]>
---
 testcases/kernel/syscalls/fork/fork13.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/syscalls/fork/fork13.c 
b/testcases/kernel/syscalls/fork/fork13.c
index 4804ea1..7fcf3d1 100644
--- a/testcases/kernel/syscalls/fork/fork13.c
+++ b/testcases/kernel/syscalls/fork/fork13.c
@@ -114,7 +114,7 @@ void check(void)
                        }
                        last_pid = pid;
 
-                       reaped = wait(&status);
+                       reaped = waitpid(pid, &status, 0);
                        if (reaped != pid) {
                                tst_resm(TFAIL,
                                        "Wait return value: expected pid=%d, "
--
1.7.4 

-- 
Best Regards,
Tang chen

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to