ref: c4535df0c431cfbfdd635d53570477d3199f1519
parent: bd81062d5fdd380010924a92f8b46089ed666180
parent: 532ac0ec6688456d72faa0732904276c89718db5
author: cinap_lenrek <cinap_lenrek@flatbox.9hal>
date: Mon Mar 5 13:34:52 EST 2012
merge
--- a/sys/src/cmd/alarm.c
+++ b/sys/src/cmd/alarm.c
@@ -24,8 +24,6 @@
#include <u.h>
#include <libc.h>
-int cpid;
-
void
usage(void)
{@@ -36,7 +34,7 @@
static void
catch(void *, char *msg)
{- postnote(PNGROUP, cpid, msg);
+ postnote(PNGROUP, getpid(), msg);
noted(NDFLT);
}
@@ -71,7 +69,8 @@
}
t += n;
}
- switch((cpid = rfork(RFFDG|RFREND|RFPROC|RFMEM|RFNOTEG))){+ rfork(RFNOTEG);
+ switch(rfork(RFFDG|RFREND|RFPROC|RFMEM)){case -1:
sysfatal("%r");case 0: /* child */
--
⑨