no zombies

This commit is contained in:
rsc 2005-02-13 21:40:12 +00:00
parent 134c20c605
commit ef2eeaf3bd

View file

@ -389,7 +389,7 @@ main(int argc, char **argv)
for(;;){ for(;;){
if((lcfd = listen(adir, ldir)) < 0) if((lcfd = listen(adir, ldir)) < 0)
exits("can't listen"); exits("can't listen");
switch(fork()){ switch(rfork(RFPROC|RFFDG|RFNOWAIT)){
case -1: case -1:
fprint(2, "secstore forking: %r\n"); fprint(2, "secstore forking: %r\n");
close(lcfd); close(lcfd);