[mythtv] Closing FDs before exec
    Isaac Richards 
    ijr at po.cwru.edu
       
    Thu Oct 21 03:38:18 UTC 2004
    
    
  
On Wednesday 20 October 2004 11:00 pm, Christopher Pascoe wrote:
> When the mythtvbackend calls system() to run an external program, that
> program inherits all the open FDs of the backend.  This may include file
> descriptors that are connected to DVB demultiplexers, frontends, etc.
Heh.  I always figured that system() would close things for you.  Ah well.
> Either of these alternatives seems to address my problems with the dvb
> demux devices being held open for too long, causing back-to-back
> recordings to fail whilst transcoding is taking place.
You mean that to be _exit() in the child?  Probably be easier to just reuse 
the existing fork/exec code from, say, the external channel change bits..
Isaac
    
    
More information about the mythtv-dev
mailing list