rump_lwproc_newproc -> rump_lwproc_rfork
This commit is contained in:
parent
5c3365ce93
commit
3daddc031c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: p2k.c,v 1.48 2011/01/02 05:04:59 dholland Exp $ */
|
||||
/* $NetBSD: p2k.c,v 1.49 2011/01/02 13:01:45 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
|
||||
|
@ -362,7 +362,7 @@ p2k_init(uint32_t puffs_flags)
|
|||
if (p2m)
|
||||
rump_init();
|
||||
|
||||
rump_pub_lwproc_newproc();
|
||||
rump_pub_lwproc_rfork(RUMP_RFCFDG);
|
||||
|
||||
return p2m;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rumpuser_sp.c,v 1.27 2010/12/16 17:05:44 pooka Exp $ */
|
||||
/* $NetBSD: rumpuser_sp.c,v 1.28 2011/01/02 13:01:45 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: rumpuser_sp.c,v 1.27 2010/12/16 17:05:44 pooka Exp $");
|
||||
__RCSID("$NetBSD: rumpuser_sp.c,v 1.28 2011/01/02 13:01:45 pooka Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/atomic.h>
|
||||
|
@ -57,6 +57,7 @@ __RCSID("$NetBSD: rumpuser_sp.c,v 1.27 2010/12/16 17:05:44 pooka Exp $");
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <rump/rump.h> /* XXX: for rfork flags */
|
||||
#include <rump/rumpuser.h>
|
||||
#include "rumpuser_int.h"
|
||||
|
||||
|
@ -110,12 +111,12 @@ lwproc_release(void)
|
|||
}
|
||||
|
||||
static int
|
||||
lwproc_newproc(struct spclient *spc)
|
||||
lwproc_rfork(struct spclient *spc, int flags)
|
||||
{
|
||||
int rv;
|
||||
|
||||
spops.spop_schedule();
|
||||
rv = spops.spop_lwproc_newproc(spc);
|
||||
rv = spops.spop_lwproc_rfork(spc, flags);
|
||||
spops.spop_unschedule();
|
||||
|
||||
return rv;
|
||||
|
@ -463,7 +464,7 @@ serv_handleconn(int fd, connecthook_fn connhook, int busy)
|
|||
break;
|
||||
}
|
||||
|
||||
if (lwproc_newproc(&spclist[i]) != 0) {
|
||||
if (lwproc_rfork(&spclist[i], RUMP_RFCFDG) != 0) {
|
||||
close(newfd);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ukfs.c,v 1.55 2010/11/26 11:10:53 pooka Exp $ */
|
||||
/* $NetBSD: ukfs.c,v 1.56 2011/01/02 13:01:45 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
|
||||
|
@ -122,7 +122,7 @@ precall(struct ukfs *ukfs, struct lwp **curlwp)
|
|||
*curlwp = rump_pub_lwproc_curlwp();
|
||||
if (*curlwp)
|
||||
rump_pub_lwproc_switch(ukfs->ukfs_lwp);
|
||||
rump_pub_lwproc_newproc();
|
||||
rump_pub_lwproc_rfork(RUMP_RFCFDG);
|
||||
|
||||
if (rump_sys_chroot(ukfs->ukfs_mountpath) == -1)
|
||||
return errno;
|
||||
|
@ -671,7 +671,7 @@ ukfs_release(struct ukfs *fs, int flags)
|
|||
|
||||
/* get root lwp */
|
||||
rump_pub_lwproc_switch(fs->ukfs_lwp);
|
||||
rump_pub_lwproc_newproc();
|
||||
rump_pub_lwproc_rfork(RUMP_RFCFDG);
|
||||
|
||||
if ((flags & UKFS_RELFLAG_NOUNMOUNT) == 0) {
|
||||
int rv, mntflag, error;
|
||||
|
|
Loading…
Reference in New Issue