[mythtv-commits] mythtv/master commit: b8ff1e2b9 by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Sun Jan 30 20:57:14 UTC 2011


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2011-01-30T12:56:40-08:00
   Push Date:  2011/01/30 12:57:12 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  b8ff1e2b92ed6c23ced6f9d622d74c7016688ef6
   Changeset:  https://github.com/MythTV/mythtv/commit/b8ff1e2b9

Log:

Changes to MythSystemUnix to fix when a launched program dies quickly

This hopefully will fix #9421 (first report).

Make background runs not block the foreground

The problem with running in the background in from the menu XML is that it is
blocking the drawing, inputdevs, etc, and then launching in the background.
If in the background, there is no reason I can think of that we need to block
the UI thread.  If the program launched in the background has focus, it should
be receiving the keyboard input.  The only one think I'm wondering is if LIRC
will act oddly.

Move timeout setting to before fork

Don't bother managing a child that failed

If the child quickly failed (i.e. errored on start), there is an apparent
race condition that makes it look like the child timed out, and if it was run
in the background, it's deleted before the manager thread gets it, so we core
dump when we try to remove it.

Modified:

   mythtv/libs/libmythbase/mythsystem.cpp
   mythtv/libs/libmythbase/system-unix.cpp
   mythtv/libs/libmythbase/system-windows.cpp



More information about the mythtv-commits mailing list