Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/puffs Call rump_init() only after we have fork&exec...



details:   https://anonhg.NetBSD.org/src/rev/3ef736701fdf
branches:  trunk
changeset: 756093:3ef736701fdf
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jul 06 15:42:24 2010 +0000

description:
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?).

diffstat:

 tests/fs/puffs/t_basic.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r a8f8a9f34352 -r 3ef736701fdf tests/fs/puffs/t_basic.c
--- a/tests/fs/puffs/t_basic.c  Tue Jul 06 15:09:41 2010 +0000
+++ b/tests/fs/puffs/t_basic.c  Tue Jul 06 15:42:24 2010 +0000
@@ -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");



Home | Main Index | Thread Index | Old Index