diff options
-rw-r--r-- | sys/kern/kern_fork.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 1209ce90350..589de5b0aec 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -70,7 +70,6 @@ sys_fork(p, v, retval) void *v; register_t *retval; { - return (fork1(p, ISFORK, 0, retval)); } @@ -80,7 +79,6 @@ sys_vfork(p, v, retval) void *v; register_t *retval; { - return (fork1(p, ISVFORK, 0, retval)); } @@ -316,6 +314,18 @@ again: vm_fork(p1, p2); #endif + switch (forktype) { + case ISFORK: + forkstat.cntfork++; + break; + case ISVFORK: + forkstat.cntvfork++; + break; + case ISRFORK: + forkstat.cntrfork++; + break; + } + /* * Make child runnable, set start time, and add to run queue. */ |