Sujet : Re: Why does getppid() still return old parent pid after setsid()?
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.programmerDate : 12. Nov 2024, 13:15:29
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vgvgt1$cnri$1@news.xmission.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
vgtr3i$15srv$2@dont-email.me>,
Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Mon, 11 Nov 2024 10:02:45 -0000 (UTC), Muttley wrote:
>
can't help thinking they should be a single shot OS call to completely
seperate the child from parent.
>
I guess its not that important.
It *is* "that important". And daemon(3) fills the role.
However, it may be true that it doesn't fully fill it - and maybe that it
should also do the "double fork".
-- The whole aim of practical politics is to keep the populace alarmed (and hence clamorousto be led to safety) by menacing it with an endless series of hobgoblins, all of them imaginary.H. L. Mencken