2003-02-19 Roland McGrath <roland@redhat.com>
FreeBSD rfork support changes from Russ Cox <rsc@plan9.bell-labs.com>: * syscall.c (internal_syscall): Handle SYS_rfork with internal_fork. * process.c (internal_fork) [SYS_rfork]: Bail if RFPROC flag not set.
This commit is contained in:
parent
ff02c907ea
commit
f3a0e1bb56
@ -451,6 +451,10 @@ struct tcb *tcp;
|
||||
struct tcb *tcpchild;
|
||||
|
||||
if (exiting(tcp)) {
|
||||
#ifdef SYS_rfork
|
||||
if (tcp->scno == SYS_rfork && !(tcp->u_arg[0]&RFPROC))
|
||||
return 0;
|
||||
#endif
|
||||
if (getrval2(tcp))
|
||||
return 0;
|
||||
if (!followfork)
|
||||
|
Loading…
Reference in New Issue
Block a user