xrdp: do not exit when caught SIGHUP

This commit is contained in:
Koichiro IWAO 2019-03-28 15:58:29 +09:00
parent ec05d4208d
commit fff61cbeca
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

View File

@ -163,6 +163,13 @@ xrdp_child(int sig)
} }
} }
/*****************************************************************************/
void
xrdp_hang_up(int sig)
{
log_message(LOG_LEVEL_INFO, "caught SIGHUP, noop...");
}
/*****************************************************************************/ /*****************************************************************************/
/* called in child just after fork */ /* called in child just after fork */
int int
@ -647,6 +654,7 @@ main(int argc, char **argv)
g_signal_pipe(pipe_sig); /* SIGPIPE */ g_signal_pipe(pipe_sig); /* SIGPIPE */
g_signal_terminate(xrdp_shutdown); /* SIGTERM */ g_signal_terminate(xrdp_shutdown); /* SIGTERM */
g_signal_child_stop(xrdp_child); /* SIGCHLD */ g_signal_child_stop(xrdp_child); /* SIGCHLD */
g_signal_hang_up(xrdp_hang_up); /* SIGHUP */
g_sync_mutex = tc_mutex_create(); g_sync_mutex = tc_mutex_create();
g_sync1_mutex = tc_mutex_create(); g_sync1_mutex = tc_mutex_create();
pid = g_getpid(); pid = g_getpid();