Deutsch   English   Français   Italiano  
<vgvgt1$cnri$1@news.xmission.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: Why does getppid() still return old parent pid after setsid()?
Date: Tue, 12 Nov 2024 12:15:29 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vgvgt1$cnri$1@news.xmission.com>
References: <vgl8h1$385vs$1@dont-email.me> <vgn9q2$8mls$1@news.xmission.com> <vgsko5$u7pg$1@dont-email.me> <vgtr3i$15srv$2@dont-email.me>
Injection-Date: Tue, 12 Nov 2024 12:15:29 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
	logging-data="417650"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
Bytes: 1594
Lines: 18

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 clamorous
to be led to safety) by menacing it with an endless series of hobgoblins, all of them imaginary.

H. L. Mencken