diff options
author | peter <peter@FreeBSD.org> | 1999-06-30 15:33:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-06-30 15:33:41 +0000 |
commit | a9c3f31bb0491224037a1ed7887f14c277021020 (patch) | |
tree | f9777c45536ff9ecf106091344d191a7bea0d671 /sys/kern/vfs_aio.c | |
parent | d49508a31321de096bc8049987226e2b5d102577 (diff) | |
download | FreeBSD-src-a9c3f31bb0491224037a1ed7887f14c277021020.zip FreeBSD-src-a9c3f31bb0491224037a1ed7887f14c277021020.tar.gz |
Slight tweak to fork1() calling conventions. Add a third argument so
the caller can easily find the child proc struct. fork(), rfork() etc
syscalls set p->p_retval[] themselves. Simplify the SYSINIT_KT() code
and other kernel thread creators to not need to use pfind() to find the
child based on the pid. While here, partly tidy up some of the fork1()
code for RF_SIGSHARE etc.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index f5f9a20..f1bac7f 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -13,7 +13,7 @@ * bad that happens because of using this software isn't the responsibility * of the author. This software is distributed AS-IS. * - * $Id: vfs_aio.c,v 1.51 1999/06/01 18:56:24 phk Exp $ + * $Id: vfs_aio.c,v 1.52 1999/06/26 02:46:05 mckusick Exp $ */ /* @@ -890,10 +890,9 @@ aio_newproc() struct proc *p, *np; p = &proc0; - error = fork1(p, RFPROC|RFMEM|RFNOWAIT); + error = fork1(p, RFPROC|RFMEM|RFNOWAIT, &np); if (error) return error; - np = pfind(p->p_retval[0]); cpu_set_fork_handler(np, aio_daemon, curproc); /* |