[mythtv-commits] mythtv commit: r25845 by beirdo

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Aug 25 06:44:49 UTC 2010


      Author: beirdo
        Date: 2010-08-25 06:44:49 +0000 (Wed, 25 Aug 2010)
New Revision: 25845
   Changeset: http://svn.mythtv.org/trac/changeset/25845

Log:

Added better handling of the return values of waitpid as used by myth_system.
 - when the child PID exits properly, it will log "exited:"
 - when the child PID dies via a signal, it will log "signal:"
 - if somehow it dies otherwise, it will log "other:"

Dying via signal will return GENERIC_EXIT_SIGNALLED (currently 243) to the
caller of myth_system.

Renumbered the exit codes slightly to put the "_START" codes at the end as
it seems that they've been neglected for a bit.

NOTE: in at least my test setup (Ubuntu 10.04 Server), there is still a
problem that children killed by signal appear to return the wrong value in the
status field from waitpid (seems to be byte-swapped in that particular
situation only).  However, this patch has been shown to be working in other 
setups, and follows the way it *should* work according to waitpid man page.
If others see similar strangeness here, please ask me about my custom 
workaround (which I'm not committing at this time).



Modified:

   trunk/mythtv/libs/libmythdb/exitcodes.h
   trunk/mythtv/libs/libmythdb/mythsystem.cpp




More information about the mythtv-commits mailing list