error -> fatal
This commit is contained in:
parent
6468125052
commit
7a445bb8d8
|
@ -1609,8 +1609,8 @@ session_close_by_channel(int id, void *arg)
|
||||||
} else {
|
} else {
|
||||||
/* notify child, delay session cleanup */
|
/* notify child, delay session cleanup */
|
||||||
if (s->pid <= 1)
|
if (s->pid <= 1)
|
||||||
error("session_close_by_channel: Unsafe s->pid = %d", s->pid);
|
fatal("session_close_by_channel: Unsafe s->pid = %d", s->pid);
|
||||||
else if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0)
|
if (kill(s->pid, (s->ttyfd == -1) ? SIGTERM : SIGHUP) < 0)
|
||||||
error("session_close_by_channel: kill %d: %s",
|
error("session_close_by_channel: kill %d: %s",
|
||||||
s->pid, strerror(errno));
|
s->pid, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue