1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

r24974: catch SIGINT and SIGQUIT like SIGTERM

metze
(This used to be commit ab15f5c3e72df6272db9a4431f720f604fcf40f2)
This commit is contained in:
Stefan Metzmacher 2007-09-06 10:51:17 +00:00 committed by Gerald (Jerry) Carter
parent b3fbff6eb5
commit 993d64cde3

View File

@ -80,6 +80,8 @@ int main(int argc, char *argv[])
} }
signal(SIGTERM, sig_term); signal(SIGTERM, sig_term);
signal(SIGINT, sig_term);
signal(SIGQUIT, sig_term);
signal(SIGUSR1, sig_usr1); signal(SIGUSR1, sig_usr1);
signal(SIGALRM, sig_alrm_term); signal(SIGALRM, sig_alrm_term);
alarm(maxtime); alarm(maxtime);