Kill children with HUP instead of TERM at end of session
This commit is contained in:
parent
48a65d6bcb
commit
145abf1fcc
1 changed files with 2 additions and 2 deletions
|
@ -1700,8 +1700,8 @@ static void launcherDaemon(int fd) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
NOINTR(pid = waitpid(request.terminate, &status, WNOHANG));
|
NOINTR(pid = waitpid(request.terminate, &status, WNOHANG));
|
||||||
if (pid == 0 && errno == 0) {
|
if (pid == 0 && errno == 0) {
|
||||||
if (kill(request.terminate, SIGTERM) == 0) {
|
if (kill(request.terminate, SIGHUP) == 0) {
|
||||||
debug("[server] Terminating child %d! [kill]", request.terminate);
|
debug("[server] Terminating child %d! [HUP]", request.terminate);
|
||||||
} else {
|
} else {
|
||||||
debug("[server] Terminating child %d failed! [%s]", request.terminate,
|
debug("[server] Terminating child %d failed! [%s]", request.terminate,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|
Loading…
Reference in a new issue