From 7a445bb8d887b3ecf51ef24f582ed18d07c3793b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 26 Jun 2000 13:12:37 +1000 Subject: [PATCH] error -> fatal --- session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session.c b/session.c index 002652303..892810847 100644 --- a/session.c +++ b/session.c @@ -1609,8 +1609,8 @@ session_close_by_channel(int id, void *arg) } else { /* notify child, delay session cleanup */ if (s->pid <= 1) - error("session_close_by_channel: Unsafe s->pid = %d", s->pid); - else if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) + fatal("session_close_by_channel: Unsafe s->pid = %d", s->pid); + if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) error("session_close_by_channel: kill %d: %s", s->pid, strerror(errno)); }