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:
Roland McGrath 2003-02-20 02:45:22 +00:00
parent ff02c907ea
commit f3a0e1bb56
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -621,6 +621,9 @@ struct tcb *tcp;
#endif
#ifdef SYS_rforkall
case SYS_rforkall:
#endif
#ifdef SYS_rfork
case SYS_rfork:
#endif
internal_fork(tcp);
break;