summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-07-05 18:17:20 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-07-05 18:17:20 +0200
commite844c77845e489a1e6421b570e221e9672106bbc (patch)
tree97b65e29b55449e051013ede1bfeac3009e46659 /sys/src
parent43e56e26ded432658cdc5b9b3fce16919b3c64f7 (diff)
nedmail: don't try to shoot down subcommand on interrupt
this breaks interrupt key handling in rio. theres also no point in trying todo so as rio sends the note to the whole process group so the subcommand should have got the note already. just wait for the subprocess to terminate.
Diffstat (limited to 'sys/src')
-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;