Sujet : Re: nohup Versus setsid
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shellDate : 12. Sep 2024, 23:02:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbvod2$esm6$1@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.160 (Toresk; )
On Thu, 12 Sep 2024 14:01:37 +0200, Janis Papanagnou wrote:
In article <vbtqcd$2sce$1@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
It has long seemed to me that nohup(1) was an old, hacky way of doing
what can be done more elegantly using setsid(1).
I don't know the details, but the descriptions look quite different...
nohup - run a command immune to hangups, with output to a non-tty
setsid - run a program in a new session
The effect is supposed to be the same: spawn a background task that will
continue running after you log out.