lash_wrap never exits (fix included)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lashwrap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Won't Fix
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lashwrap
$ lash_wrap -- sleep 3600
$ killall sleep
$ sleep 5; pidof lash_wrap
10234
lash_wrap doesn't exit when the wrapped application terminates, because it improperly tries to ignore SIGCHLD. From the waitpid manpage:
Note that even though the default disposition of SIGCHLD is "ignore", explicitly setting the disposition to SIG_IGN results in different treatment of zombie process children.
The fix is simple -- remove the line that says
signal(SIGCHLD, SIG_IGN)
It's unnecessary and it harmful.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: lashwrap 1.0.2-0ubuntu2
ProcVersionSign
Uname: Linux 2.6.31-11-rt i686
NonfreeKernelMo
Architecture: i386
Date: Sun Mar 6 19:21:58 2011
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lashwrap
Related branches
Changed in lashwrap (Ubuntu): | |
status: | New → Incomplete |
Changed in lashwrap (Ubuntu): | |
status: | Incomplete → New |
tags: | added: patch |
Patch form for this fix, even though it's trivial...