[MPlayer-dev-eng] [PATCH] watchpid slave command
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Aug 12 22:21:48 CEST 2009
On Wed, Aug 12, 2009 at 04:04:12PM -0400, Jason Tackaberry wrote:
> On Wed, 2009-08-12 at 18:39 +0200, Nicolas George wrote:
> > If your plumbing is done correctly, whenever your frontend crashed, mplayer
> > should get an EOF condition on the slave fd: the best option is to make
> > mplayer (optionally) exit on EOF from input fds. After a quick glance at the
> > input code, I think this would require much less code than your patch.
>
> I haven't had much time to investigate the issue, but I've noticed that
> MPlayer sometimes leaves useless (not zombies, technically) processes
> lying around. Starting mplayer seems to create two processes, and if I
> kill -9 my front-end, one of the processes dies properly, but the other
> lives on.
That is the cache process. One way to avoid it (and I don't mind if it
gets some more testing) is to compile so it uses a cache thread instead
of a cache process.
For that change in config.h
#undef PTHREAD_CACHE
to
#define PTHREAD_CACHE 1
More information about the MPlayer-dev-eng
mailing list