summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/upas/ned/nedmail.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/cmd/upas/ned/nedmail.c b/sys/src/cmd/upas/ned/nedmail.c
index 81ebcd271..802231759 100644
--- a/sys/src/cmd/upas/ned/nedmail.c
+++ b/sys/src/cmd/upas/ned/nedmail.c
@@ -2593,9 +2593,7 @@ fqcmd(Cmd*, Message *m)
void
system(char *cmd, char **av, int in)
{
- int pid;
-
- switch(pid=fork()){
+ switch(fork()){
case -1:
return;
case 0:
@@ -2615,7 +2613,7 @@ system(char *cmd, char **av, int in)
while(waitpid() < 0){
if(!interrupted)
break;
- postnote(PNPROC, pid, "die");
+ interrupted = 0;
continue;
}
break;