From 175b8a534ae5729ac10ea793410a40bfa4a30608 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 21 Apr 2004 04:48:25 +0000 Subject: No more malloc or lock inside signal handlers. --- src/lib9/rfork.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib9/rfork.c') diff --git a/src/lib9/rfork.c b/src/lib9/rfork.c index f3a21928..21dc17e8 100644 --- a/src/lib9/rfork.c +++ b/src/lib9/rfork.c @@ -1,5 +1,7 @@ -#define NOPLAN9DEFINES -#include +#include +#include +#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; } -- cgit v1.2.3