[MPlayer-dev-eng] [PATCH] Support for nohup in mplayer

Nicolas George george at nsup.org
Mon Jul 25 18:27:51 EEST 2016


L'octidi 8 thermidor, an CCXXIV, Seb a écrit :
> Here is attached a little patch allowing mplayer to inherit a
> nohup setting. This can be useful when this one is used in slave
> mode and you don't want xinit or xterm to shut it down.

I do not object to the patch, but I would like to emphasize that, although a
well established practice for a long time, using nohup is wrong.

Using nohup is like subscribing to a mailing list and then flagging the mail
from it as spam when they are no longer wanted. The correct way is to
unsubscribe.

To unsubscribe from SIGHUPs sent automatically, the correct mechanism is to
create a new session using the setsid() system call, available as the setsid
command-line tool.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20160725/f7cfbfc9/attachment.sig>


More information about the MPlayer-dev-eng mailing list