[MPlayer-dev-eng] Re: [PATCH] xscreensaver
D Richard Felker III
dalias at aerifal.cx
Sat Mar 22 04:00:43 CET 2003
On Sat, Mar 22, 2003 at 02:12:55AM +0100, Tobias Diedrich wrote:
> D Richard Felker III wrote:
>
> > And it makes a nice zombie process every time it pings. Beautiful. Is
> > there a reason this can't be done without forking???
>
> Of course it can be done without forking, should be just a small change in
> mplayer.c AFAICS. Most of the code is for getting the window id, sending
> the Event is easy after that. I don't know how much time
> XSendEvent+XSync may take, however.
Nothing is needed in mplayer.c. Instead, just send the ping once every
100 calls to the code that displays a frame in the X-based vo's.
> Also I don't see any zomies here, maybe you mean the mplayer process
> that lurks around for up to 30seconds after exit, until it polls the
> sigs again?
Hmm, forking a child which subsequently exits should result in a
zombie until the parent handles SIGCHLD and wait()s for it.
Rich
More information about the MPlayer-dev-eng
mailing list