diff options
author | Damien Miller <djm@mindrot.org> | 2000-06-26 13:12:37 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-06-26 13:12:37 +1000 |
commit | 7a445bb8d887b3ecf51ef24f582ed18d07c3793b (patch) | |
tree | 5faed98b5dbcf04337daca2fb1e0998b3ec2791f | |
parent | 6468125052288184b4604fe64fbacfe24e09ee34 (diff) |
error -> fatal
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1609,8 +1609,8 @@ session_close_by_channel(int id, void *arg) | |||
1609 | } else { | 1609 | } else { |
1610 | /* notify child, delay session cleanup */ | 1610 | /* notify child, delay session cleanup */ |
1611 | if (s->pid <= 1) | 1611 | if (s->pid <= 1) |
1612 | error("session_close_by_channel: Unsafe s->pid = %d", s->pid); | 1612 | fatal("session_close_by_channel: Unsafe s->pid = %d", s->pid); |
1613 | else if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) | 1613 | if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) |
1614 | error("session_close_by_channel: kill %d: %s", | 1614 | error("session_close_by_channel: kill %d: %s", |
1615 | s->pid, strerror(errno)); | 1615 | s->pid, strerror(errno)); |
1616 | } | 1616 | } |