[mythtv] patch to add native lirc support
mdz at debian.org
Sun Aug 10 20:47:42 EDT 2003
On Sun, Aug 10, 2003 at 04:34:15PM -0700, Anduin Withers wrote:
> "Hey Anduin that patch sucked! Now when I spawn other programs which also
> take direct lirc input myth receives the keys as well."
> Attached is a patch to fix that problem.
> Introduced a new function into util.h, goes by myth_system(). Works just
> like system() except if USE_LIRC is defined it will block the lirc events
> from being processed during the system call.
> lirc_mute.patch.txt and lircevent.cpp are all that is needed for mythtv.
> Since part of this was to make controlling a spawned DVD player easier I'm
> also including lirc_mute_dvd.patch.txt which simply uses myth_system()
> instead of system() in the dvd module.
As long as you're adding this function, I suggest also using it to close all
of myth's file descriptors other than stdin, stdout and stderr, as is done
when calling the external channel command, etc., and using it in these other
instances as well.
More information about the mythtv-dev