tignore hangup signal - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 89de2e575e2362556be1cb9904c9cde89f20b466
(DIR) parent 5bd21066c5fa3a39816416f93186c88832957330
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 19 Jan 2006 00:05:56 +0000
ignore hangup signal
Diffstat:
M src/cmd/9term/9term.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
t@@ -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;