diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-02-12 15:07:52 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-02-12 15:07:52 +0000 |
commit | 7f982bf6c93ee7ab3426a059af51d21663ed36f0 (patch) | |
tree | b297d24b9822118e5cdc9823ca17a8777b08123c /session.c | |
parent | 603bdfd602f2004d74c39dbab8142f19af6087dd (diff) |
- (stevesk) session.c: remove debugging code.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1969,8 +1969,6 @@ session_close_by_channel(int id, void *arg) | |||
1969 | session_close(s); | 1969 | session_close(s); |
1970 | } else { | 1970 | } else { |
1971 | /* notify child, delay session cleanup */ | 1971 | /* notify child, delay session cleanup */ |
1972 | if (s->pid <= 1) | ||
1973 | fatal("session_close_by_channel: Unsafe s->pid = %d", s->pid); | ||
1974 | if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) | 1972 | if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0) |
1975 | error("session_close_by_channel: kill %d: %s", | 1973 | error("session_close_by_channel: kill %d: %s", |
1976 | s->pid, strerror(errno)); | 1974 | s->pid, strerror(errno)); |