[lockdev-devel] [PATCH 14/19] SIGCHLD handling should be left to the caller
Ludwig Nussel
ludwig.nussel at suse.de
Thu Feb 25 10:02:11 UTC 2010
---
src/lockdev.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/lockdev.c b/src/lockdev.c
index c45a1dd..415f767 100644
--- a/src/lockdev.c
+++ b/src/lockdev.c
@@ -939,7 +939,6 @@ static int _spawn_helper(const char * argv[])
{
pid_t child;
int status;
- void (*osig) (int) = signal(SIGCHLD, SIG_DFL);
int rc;
if (!(child = fork())) {
@@ -958,7 +957,6 @@ static int _spawn_helper(const char * argv[])
}
rc = (int) waitpid(child, &status, 0);
- signal(SIGCHLD, osig);
if (rc == child && WIFEXITED(status)) {
/*
* Exit dev_lock dev_unlock dev_testlock
--
1.6.4.2
More information about the lockdev-devel
mailing list