mirror of https://github.com/martanne/abduco
Unlink socket when server is killed
This commit is contained in:
parent
fcaf5368fa
commit
c14b9c9173
1
abduco.c
1
abduco.c
|
|
@ -251,6 +251,7 @@ static bool create_session(const char *name, char * const argv[]) {
|
|||
break;
|
||||
default:
|
||||
/* SIGTTIN, SIGTTU */
|
||||
sa.sa_handler = server_sigterm_handler;
|
||||
sigaction(SIGTERM, &sa, NULL);
|
||||
sigaction(SIGINT, &sa, NULL);
|
||||
sa.sa_handler = SIG_IGN;
|
||||
|
|
|
|||
Loading…
Reference in New Issue