[mythtv-commits] Ticket #7315: mythtranscode doesnt die after lossless transcoding to cut out ads
MythTV
mythtv at cvs.mythtv.org
Sat Nov 7 01:10:51 UTC 2009
#7315: mythtranscode doesnt die after lossless transcoding to cut out ads
------------------------------------+---------------------------------------
Reporter: oobe.trouble@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------
Comment(by mythtv@…):
I've done some basic debugging of the mythtranscode code.
In main.cpp, int slowDelete(QString filename) [[BR]]
I've traced the execution all the way through until it gets to[[BR]]
{{{
if (inBackground)
exit(0);
else
VERBOSE(VB_IMPORTANT, QString("Finished truncating
%1.").arg(filename));
}}}
inBackground is set to true and so it calls the exit(0) statement and does
not return. I assume this is when this process should end?
[[BR]]
The code forks another process to do the truncate loop and completes the
truncate successfully. The file is no longer on the disk.[[BR]]
The PID that the fork() call returns is the one that is still running. The
original process has ended. [[BR]]
Hope this helps.
Darryl
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7315#comment:19>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list