diff options
Diffstat (limited to 'usr/src/uts/intel/ia32/os/syscall.c')
-rw-r--r-- | usr/src/uts/intel/ia32/os/syscall.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/intel/ia32/os/syscall.c b/usr/src/uts/intel/ia32/os/syscall.c index 965fc07c1d..a78fbc62a6 100644 --- a/usr/src/uts/intel/ia32/os/syscall.c +++ b/usr/src/uts/intel/ia32/os/syscall.c @@ -603,8 +603,11 @@ post_syscall(long rval1, long rval2) * This code must be here and not in the bowels of the system * so that /proc can intercept exit from vfork in a timely way. */ - if (code == SYS_vfork && rp->r_r1 == 0 && error == 0) + if (p->p_flag & SVFPARENT) { + ASSERT(code == SYS_vfork || code == SYS_forksys); + ASSERT(rp->r_r1 == 0 && error == 0); vfwait((pid_t)rval1); + } /* * If profiling is active, bill the current PC in user-land |