diff options
author | peter <peter@FreeBSD.org> | 1997-08-22 15:10:00 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-08-22 15:10:00 +0000 |
commit | 2e41030defb8da4a6a73be1458060497037f2418 (patch) | |
tree | e70c757be198eb78ef717ff4cdad7a867993a67b /sys/kern/kern_fork.c | |
parent | 84c6614d5103bdc0c44c93263bd43a91e7275b77 (diff) | |
download | FreeBSD-src-2e41030defb8da4a6a73be1458060497037f2418.zip FreeBSD-src-2e41030defb8da4a6a73be1458060497037f2418.tar.gz |
Print a warning if an unsupported (under SMP) shared address space fork
is attempted rather than just failing with an errno.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 9ba5a03..13c6c51 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.44 1997/06/22 16:04:13 peter Exp $ + * $Id: kern_fork.c,v 1.45 1997/07/06 02:40:41 dyson Exp $ */ #include "opt_ktrace.h" @@ -151,8 +151,11 @@ fork1(p1, flags, retval) * area for SMP mode. Both cases require seperate management of * the per-process-even-if-PTmap-is-shared PTD. */ - if (flags & RFMEM) + if (flags & RFMEM) { + printf("shared address space fork attempted: pid: %d\n", + p1->p_pid); return (EOPNOTSUPP); + } #endif /* |