Bug 155396
Summary: | spawned esd daemon hangs onto file descriptors | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Steve Fink <steve> |
Component: | esound | Assignee: | Bastien Nocera <bnocera> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-04-19 14:52:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steve Fink
2005-04-19 22:18:05 UTC
Workaround is buggy. The spawning shell would still have the same file descriptors open. Here's a better, but still ridiculous, one: setenv("ESD_SPAWN_OPTIONS", "-h 2>/dev/null; exec >/dev/null 2>&1 </dev/null; perl -MPOSIX -le 'opendir(D, q(/proc/self/fd)); @fd=readdir(D); @fd=sort grep { readlink(qq(/proc/self/fd/$_)) !~ /^((socket|pipe):|dsp)/ } @fd; POSIX::close($fd[-1]) if $fd[-1] > 2; exec(q(/usr/bin/esd), @ARGV)' -- -terminate -nobeeps -as 2", 1) This is already fixed in more recent versions of esound, as per the upstream bug: http://bugzilla.gnome.org/show_bug.cgi?id=333186 Let me know whether this is a problem for you in later versions, as, unfortunately RHEL3 updates are now closed. |