diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | session.c | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -7,6 +7,7 @@ | |||
7 | - (djm) Fix OSF SIA auth NULL pointer deref. Report from Mike Battersby | 7 | - (djm) Fix OSF SIA auth NULL pointer deref. Report from Mike Battersby |
8 | <mib@unimelb.edu.au> | 8 | <mib@unimelb.edu.au> |
9 | - (bal) NCR SVR4 compatiblity provide by Don Bragg <thewizarddon@yahoo.com> | 9 | - (bal) NCR SVR4 compatiblity provide by Don Bragg <thewizarddon@yahoo.com> |
10 | - (stevesk) session.c: remove debugging code. | ||
10 | 11 | ||
11 | 20010211 | 12 | 20010211 |
12 | - (bal) OpenBSD Sync | 13 | - (bal) OpenBSD Sync |
@@ -3903,4 +3904,4 @@ | |||
3903 | - Wrote replacements for strlcpy and mkdtemp | 3904 | - Wrote replacements for strlcpy and mkdtemp |
3904 | - Released 1.0pre1 | 3905 | - Released 1.0pre1 |
3905 | 3906 | ||
3906 | $Id: ChangeLog,v 1.748 2001/02/12 07:29:45 mouring Exp $ | 3907 | $Id: ChangeLog,v 1.749 2001/02/12 15:07:52 stevesk Exp $ |
@@ -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)); |