From 89de2e575e2362556be1cb9904c9cde89f20b466 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 19 Jan 2006 00:05:56 +0000 Subject: ignore hangup signal --- src/cmd/9term/9term.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 0c5609bd..24a0a115 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -130,10 +130,8 @@ hangupnote(void *a, char *msg) { if(getpid() != mainpid) noted(NDFLT); - if(strcmp(msg, "hangup") == 0 && rcpid != 0){ - postnote(PNGROUP, rcpid, "hangup"); - noted(NDFLT); - } + if(strcmp(msg, "hangup") == 0) + noted(NCONT); if(strstr(msg, "child")){ char buf[128]; int n; -- cgit v1.2.3