[mythtv] patch to add native lirc support

Matt Zimmerman mdz at debian.org
Sun Aug 10 21:55:00 EDT 2003

On Sun, Aug 10, 2003 at 05:09:56PM -0700, Anduin Withers wrote:
> > 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.
> It is a real system() call currently, not a fork/exec call. If I closed all
> the non-default file handles... well then all the file handles would be
> closed.
> Arguably myth_system could fork/exec/waitpid and then do the file handle
> closing.

It could do exactly what ChangeExternalChannel does, which is to fork, close
file handles in the child, exec the child using /bin/sh, and wait for it.
It would presumably do the LIRC stuff before and after waitpid.

 - mdz

More information about the mythtv-dev mailing list