aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1997-07-06 02:40:43 +0000
committerJohn Dyson <dyson@FreeBSD.org>1997-07-06 02:40:43 +0000
commit2244ea07dc9813b20e9bfd82568ca66415da4f67 (patch)
tree86dd51c7a51337effffd73d846ad747a75ad0195 /sys/kern/kern_fork.c
parentee589d62ba3e49be9a660a0944562a85552bd375 (diff)
downloadsrc-2244ea07dc9813b20e9bfd82568ca66415da4f67.tar.gz
src-2244ea07dc9813b20e9bfd82568ca66415da4f67.zip
This is an upgrade so that the kernel supports the AIO calls from
POSIX.4. Additionally, there is some initial code that supports LIO. This code supports AIO/LIO for all types of file descriptors, with few if any restrictions. There will be a followup very soon that will support significantly more efficient operation for VCHR type files (raw.) This code is also dependent on some kernel features that don't work under SMP yet. After I commit the changes to the kernel to support proper address space sharing on SMP, this code will also work under SMP.
Notes
Notes: svn path=/head/; revision=27221
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index cb50acbd3820..9ba5a03a1a26 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
- * $Id: kern_fork.c,v 1.43 1997/06/16 00:29:30 dyson Exp $
+ * $Id: kern_fork.c,v 1.44 1997/06/22 16:04:13 peter Exp $
*/
#include "opt_ktrace.h"
@@ -307,6 +307,8 @@ again:
bcopy(&p1->p_startcopy, &p2->p_startcopy,
(unsigned) ((caddr_t)&p2->p_endcopy - (caddr_t)&p2->p_startcopy));
+ p2->p_aioinfo = NULL;
+
/*
* Duplicate sub-structures as needed.
* Increase reference counts on shared objects.