Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/puffs/rump_lfs Need to p2k_init() (i.e. fork()) ear...



details:   https://anonhg.NetBSD.org/src/rev/d94bb48a3773
branches:  trunk
changeset: 748784:d94bb48a3773
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 05 12:00:18 2009 +0000

description:
Need to p2k_init() (i.e. fork()) earlier to not lose threads created
in rump_init().

diffstat:

 usr.sbin/puffs/rump_lfs/rump_lfs.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r a87c910669be -r d94bb48a3773 usr.sbin/puffs/rump_lfs/rump_lfs.c
--- a/usr.sbin/puffs/rump_lfs/rump_lfs.c        Thu Nov 05 11:54:49 2009 +0000
+++ b/usr.sbin/puffs/rump_lfs/rump_lfs.c        Thu Nov 05 12:00:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_lfs.c,v 1.10 2009/10/18 19:37:25 pooka Exp $      */
+/*     $NetBSD: rump_lfs.c,v 1.11 2009/11/05 12:00:18 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -68,6 +68,9 @@
        int rv;
 
        setprogname(argv[0]);
+       p2m = p2k_init(0);
+       if (!p2m)
+               err(1, "init p2k");
 
        /*
         * Load FFS and LFS already here.  we need both and link set
@@ -105,10 +108,6 @@
            &args, sizeof(args));
        cleaner(canon_dir);
 #endif
-
-       p2m = p2k_init(0);
-       if (!p2m)
-               err(1, "init p2k");
        if (p2k_setup_diskfs(p2m, MOUNT_LFS, canon_dev, part, canon_dir,
            mntflags, &args, sizeof(args)) == -1)
                err(1, "mount");



Home | Main Index | Thread Index | Old Index