[MPlayer-dev-eng] [HACK] make nohup mplayer/mencoder work

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Dec 30 12:06:26 CET 2008


On Tue, Dec 30, 2008 at 11:54:56AM +0100, Nicolas George wrote:
> Le decadi 10 nivôse, an CCXVII, Reimar Döffinger a écrit :
> > it is quite a hack particularly since it introduces a race condition
> > (though strictly speaking one exists already in nohup.c anyway, so it
> > matter little IMO, which is also the reason I did the check this way).
> > Still, it makes nohup work with mencoder/mplayer so it might be worth it
> > anyway...
> 
> Is it really worth any effort to make nohup work anyway? nohup is crap, I am
> amazed that people still advertise its usage. The correct way tu protect a
> process from signals sent by the terminal is not to ignore them but to
> detach the process from the terminal, which is done by setsid. I would
> rather suggest something like that:

I don't know, though I have never heard of setsid, at least for bash the
recommended way I think is
disown -h

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list