No more malloc or lock inside signal handlers.

This commit is contained in:
rsc 2004-04-21 04:48:25 +00:00
parent ac0e2db600
commit 175b8a534a
6 changed files with 78 additions and 55 deletions

View file

@ -1,5 +1,7 @@
#define NOPLAN9DEFINES
#include <lib9.h>
#include <u.h>
#include <libc.h>
#include "9proc.h"
#undef rfork
int
p9rfork(int flags)
@ -14,6 +16,7 @@ p9rfork(int flags)
return -1;
}
pid = fork();
_p9uproc(0);
if(pid != 0)
return pid;
}