Module Name:    src
Committed By:   pooka
Date:           Tue Jul  6 15:42:25 UTC 2010

Modified Files:
        src/tests/fs/puffs: t_basic.c

Log Message:
Call rump_init() only after we have fork&exec'd the file server.
Otherwise the test would on rare occasions hang (I guess this was
due to calling sprintf/close between fork&exec in a threaded
program?).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/puffs/t_basic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/fs/puffs/t_basic.c
diff -u src/tests/fs/puffs/t_basic.c:1.1 src/tests/fs/puffs/t_basic.c:1.2
--- src/tests/fs/puffs/t_basic.c:1.1	Tue Jul  6 14:44:30 2010
+++ src/tests/fs/puffs/t_basic.c	Tue Jul  6 15:42:24 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_basic.c,v 1.1 2010/07/06 14:44:30 pooka Exp $	*/
+/*	$NetBSD: t_basic.c,v 1.2 2010/07/06 15:42:24 pooka Exp $	*/
 
 #include <sys/types.h>
 #include <sys/mount.h>
@@ -244,13 +244,12 @@
 	    atf_tc_get_config_var(tc, "srcdir"));
 	dtfsargv[1] = dtfs_path;
 
-	rump_init();
-
 	rv = parseargs(__arraycount(dtfsargv), dtfsargv,
 	    &pargs, &mntflag, canon_dev, canon_dir);
 	if (rv)
 		atf_tc_fail("comfd parseargs");
 
+	rump_init();
 	fd = rump_sys_open("/dev/puffs", O_RDWR);
 	if (fd == -1)
 		atf_tc_fail_errno("open puffs fd");

Reply via email to