Various additions and fixes.
This commit is contained in:
parent
74f990ad84
commit
fd04aacee1
57 changed files with 2176 additions and 159 deletions
20
src/lib9/rfork.c
Normal file
20
src/lib9/rfork.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#define NOPLAN9DEFINES
|
||||
#include <lib9.h>
|
||||
|
||||
int
|
||||
p9rfork(int flags)
|
||||
{
|
||||
if(flags&RFPROC){
|
||||
werrstr("cannot use rfork to fork -- use ffork");
|
||||
return -1;
|
||||
}
|
||||
if(flags&RFNOTEG){
|
||||
setpgrp(0, 0);
|
||||
flags &= ~RFNOTEG;
|
||||
}
|
||||
if(flags){
|
||||
werrstr("unknown flags %08ux in rfork", flags);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue