summaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-07 15:18:17 +0100
committerKarel Zak <kzak@redhat.com>2009-12-07 15:23:40 +0100
commit60cd48bd1425610fbdcdb20249210c7f986cb31d (patch)
tree756194fdf2fac5abf447dd5458fdb2de627cb567 /TODO
parent8179a658a427a96473146655fde72f25f3cc050d (diff)
downloadutil-linux-old-60cd48bd1425610fbdcdb20249210c7f986cb31d.tar.gz
flock: fix hang when parent ignores SIGCHLD
If flock is executed from a process which has set SIGCHLD to SIG_IGN, then flock will eat cpu and hang indefinitely if given a command to execute. So before we fork(), make sure to set SIGCHLD handling back to the default so that the later waitpid() doesn't freak out on us. [kzak@redhat.com: - add a check for waitpid() return value] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions