[mythtv-commits] Ticket #8349: Better cleanup of ffmpeg process when web streaming is cancelled
MythTV
mythtv at cvs.mythtv.org
Thu Apr 15 02:34:56 UTC 2010
#8349: Better cleanup of ffmpeg process when web streaming is cancelled
------------------------------------------------+---------------------------
Reporter: brandon.d.shields+mythtv@… | Owner: kormoc
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: 0.23rc2
Severity: low | Mlocked: 0
------------------------------------------------+---------------------------
I use lighttpd, and when the ffmpeg process is spawned by stream_flv.pl it
is executed via a 'sh' process (see below). The method used in
stream_flv.pl to cleanup ffmpeg is insufficient. The attached patch
forces a new process group id, and uses that to terminate the ffmpeg
process.
{{{
5249 ? 00:00:00 lighttpd
5846 ? 00:00:00 php-cgi <defunct>
5849 ? 00:00:00 php-cgi <defunct>
6006 ? 00:00:00 php-cgi
6116 ? 00:00:01 php-cgi
7019 ? 00:00:00 php-cgi
7020 ? 00:00:00 php-cgi
7022 ? 00:00:00 perl
7024 ? 00:00:00 sh
7025 ? 00:00:05 ffmpeg
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8349>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list