[mythtv] Backend process dies at 4GB file limit? - coding hints wanted.... PATCH ATTACHED TOO

Mark Weaver mark-clist at npsl.co.uk
Fri Jan 20 02:28:20 UTC 2006

Buzz wrote:
> Hi All.   I'm working on a solution to this thread and have got the
> following steps working in my code (diff attached):
> 1) OS sends SIGXFSZ to mythbackend
> 2) backend captures said signal, squirrels it into a global called
> "LastSignal", so anyone who wants to can look for it. (yes, I know globals
> are bad, but signal handlers are worse.)
> IE: How do I make everything else recognise that the recording of this file
> has aborted/failed?
> Am I doing the right thing here... Or is there an easier way?
Just ignore the signal - write will return EFBIG and the recording 
should follow the usual failure path.  You should be able to test it 
with ulimit -f, that will allow you to generate SIGXFSZ with smaller files.

More information about the mythtv-dev mailing list