mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r12255: - we don't use SIGUSR1 anymore, so ignore it
- we don't handle SIGHUP just, so ignore it
metze
(This used to be commit 09a517bd97
)
This commit is contained in:
parent
ab31a44216
commit
275cf2b364
@ -106,6 +106,9 @@ static void setup_signals(void)
|
||||
BlockSignals(True,SIGFPE);
|
||||
#endif
|
||||
|
||||
/* We are no longer interested in USR1 */
|
||||
BlockSignals(True, SIGUSR1);
|
||||
|
||||
#if defined(SIGUSR2)
|
||||
/* We are no longer interested in USR2 */
|
||||
BlockSignals(True,SIGUSR2);
|
||||
@ -114,10 +117,12 @@ static void setup_signals(void)
|
||||
/* POSIX demands that signals are inherited. If the invoking process has
|
||||
* these signals masked, we will have problems, as we won't recieve them. */
|
||||
BlockSignals(False, SIGHUP);
|
||||
BlockSignals(False, SIGUSR1);
|
||||
BlockSignals(False, SIGTERM);
|
||||
}
|
||||
|
||||
/* as we don't handle on this signals yet, we need to ignore them,
|
||||
* instead of terminating */
|
||||
CatchSignal(SIGHUP, SIG_IGN);
|
||||
}
|
||||
|
||||
/*
|
||||
handle io on stdin
|
||||
|
Loading…
Reference in New Issue
Block a user