diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-09 09:51:17 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-09 09:51:17 +0000 |
| commit | b6078f290656feed8b6aaca7cc208a8c80f870fd (patch) | |
| tree | 8bfd80afd092031ad3641e005d80a9eea20f4bf7 /usr.bin/tip | |
| parent | 3c0d1798b1739edef4a926c8d0e39e7c52be3202 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tip')
| -rw-r--r-- | usr.bin/tip/tip/tipout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/tipout.c b/usr.bin/tip/tip/tipout.c index 4d6b56524c2d..3464dd583b7d 100644 --- a/usr.bin/tip/tip/tipout.c +++ b/usr.bin/tip/tip/tipout.c @@ -137,12 +137,14 @@ tipout() intTERM(); /*NOTREACHED*/ } else if (cnt == 0 && errno == ENOENT) { - kill(getppid(),SIGUSR1); + if (getppid() != 1) + kill(getppid(),SIGUSR1); sigblock(sigmask(SIGTERM)); intTERM(); /*NOTREACHED*/ } else if (cnt < 0) { - kill(getppid(),SIGUSR1); + if (getppid() != 1) + kill(getppid(),SIGUSR1); sigblock(sigmask(SIGTERM)); intTERM(); /*NOTREACHED*/ |
