Hi !

This patch fix a NFS warning when running rename14 concurrently.
In this case, due to the large number of running processes and
scheduler decisions, the father task can exit before its sons. Thus,
leading to the removal of a file still opened by a son... NFS don't like
that :)

R.

-- 
Renaud Lottiaux

Kerlabs
Bâtiment Germanium
80, avenue des buttes de Coësmes
35700 Rennes - France
Phone : (+33|0)6 80 89 19 34
Fax   : (+33|0)2 99 84 71 71
Email : [EMAIL PROTECTED]
Web   : http://www.kerlabs.com/
Index: cvs/testcases/kernel/syscalls/rename/rename14.c
===================================================================
--- cvs.orig/testcases/kernel/syscalls/rename/rename14.c	2008-03-07 09:39:26.000000000 +0100
+++ cvs/testcases/kernel/syscalls/rename/rename14.c	2008-03-07 09:46:47.000000000 +0100
@@ -151,6 +151,9 @@
 	kill(kidpid[0], SIGTERM);
 	kill(kidpid[1], SIGTERM);
 
+	waitpid(kidpid[0], NULL, 0);
+	waitpid(kidpid[1], NULL, 0);
+
 	unlink("./rename14");
 	unlink("./rename14xyz");
 	(local_flag == PASSED) ?

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
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