diff options
author | Simo Sorce <simo@redhat.com> | 2013-11-09 15:44:45 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-12 11:24:57 +0100 |
commit | d054a96e102b53a3aab6602f531a0e8d254080ab (patch) | |
tree | 9dd0c6f82ffdf69844673bed9f24fd8044d475a9 /src | |
parent | 407123c67114bf010cdad4418f291f9fb3762f4a (diff) | |
download | sssd-d054a96e102b53a3aab6602f531a0e8d254080ab.tar.gz sssd-d054a96e102b53a3aab6602f531a0e8d254080ab.tar.xz sssd-d054a96e102b53a3aab6602f531a0e8d254080ab.zip |
Signals: Remove unused functions
Cleanup unused signal functions
Diffstat (limited to 'src')
-rw-r--r-- | src/util/signal.c | 57 | ||||
-rw-r--r-- | src/util/util.h | 2 |
2 files changed, 0 insertions, 59 deletions
diff --git a/src/util/signal.c b/src/util/signal.c index e4a782da9..efbc918a9 100644 --- a/src/util/signal.c +++ b/src/util/signal.c @@ -28,45 +28,6 @@ * @brief Signal handling */ -/**************************************************************************** - Catch child exits and reap the child zombie status. -****************************************************************************/ - -static void sig_cld(int signum) -{ - while (waitpid((pid_t)-1,(int *)NULL, WNOHANG) > 0) - ; - - /* - * Turns out it's *really* important not to - * restore the signal handler here if we have real POSIX - * signal handling. If we do, then we get the signal re-delivered - * immediately - hey presto - instant loop ! JRA. - */ - -#if !defined(HAVE_SIGACTION) - CatchSignal(SIGCLD, sig_cld); -#endif -} - -/**************************************************************************** -catch child exits - leave status; -****************************************************************************/ - -static void sig_cld_leave_status(int signum) -{ - /* - * Turns out it's *really* important not to - * restore the signal handler here if we have real POSIX - * signal handling. If we do, then we get the signal re-delivered - * immediately - hey presto - instant loop ! JRA. - */ - -#if !defined(HAVE_SIGACTION) - CatchSignal(SIGCLD, sig_cld_leave_status); -#endif -} - /** Block sigs. **/ @@ -126,21 +87,3 @@ void (*CatchSignal(int signum,void (*handler)(int )))(int) return signal(signum, handler); #endif } - -/** - Ignore SIGCLD via whatever means is necessary for this OS. -**/ - -void CatchChild(void) -{ - CatchSignal(SIGCLD, sig_cld); -} - -/** - Catch SIGCLD but leave the child around so it's status can be reaped. -**/ - -void CatchChildLeaveStatus(void) -{ - CatchSignal(SIGCLD, sig_cld_leave_status); -} diff --git a/src/util/util.h b/src/util/util.h index e41b576d5..581ba6fec 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -304,8 +304,6 @@ void sig_term(int sig); #include <signal.h> void BlockSignals(bool block, int signum); void (*CatchSignal(int signum,void (*handler)(int )))(int); -void CatchChild(void); -void CatchChildLeaveStatus(void); /* from memory.c */ typedef int (void_destructor_fn_t)(void *); |