[mythtv-commits] Ticket #34: change 'system' to 'myth_system' in
scheduler.cpp for properly spawning external commands
MythTV
mythtv at cvs.mythtv.org
Sat Jul 2 02:38:07 UTC 2005
#34: change 'system' to 'myth_system' in scheduler.cpp for properly spawning
external commands
--------------------+-------------------------------------------------------
Id: 34 | Status: new
Component: mythtv | Modified: Sat Jul 2 02:38:06 2005
Severity: low | Milestone:
Priority: minor | Version: head
Owner: ijr | Reporter: david.collett at gmail.com
--------------------+-------------------------------------------------------
Hi all,
This trivial patch makes the scheduler use the myth_system function rather
than regular system when spawning external processes (eg. startup command,
shutdown command etc).
myth_system correcly closes open file descriptors after forking and before
execing. If a user script spawns other background processes, they too will
inherit fd's without this change, this causes problems for me and prevents
my system from suspending.
While I'm sure there are other solutions for me (my script could close the
fd's itself), I think this is the way the code should be anyway.
Thanks,
Dave
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/34>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list