Article View: alt.folklore.computers
Article #624805Re: fork queue, The Peter Principle
From: John Levine
Date: Sun, 08 Jul 2018 00:43
Date: Sun, 08 Jul 2018 00:43
23 lines
2391 bytes
2391 bytes
In article <1bmuv2s...@pfeifferfamily.net> you write: >> The calling process for exec() must be the child process. ISTM the >> child process must signal the parent process and abort... if exec() >> fails. No, both the child and parent process can do whatever they want. It's conventional for the child to exec() and the parent to wait(), but that's just a convention, and nothing requires that. >There is no requirement that there even be a child process. There is no >reason a process can't replace its own running image using an exec(). Actually, the *only* think exec() can do is to replace the running process. Sometimes there was a fork() shortly before, but that is absoutely not required. Think of the "exec" command in most shells which says to run the command directly, no fork. -- Regards, John Levine, jo...@iecc.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID:
<phrmms$doc$1@gal.iecc.com>Path:
mbox-mo1.pugleaf.net!l67-v6ni5462itl.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.snarked.org!news.ripco.com!adore2!news.iecc.com!.POSTED.news.iecc.com!not-for-mailReferences:
<pho0pp$s4$1@dont-email.me> <php3bq$hpq$1@dont-email.me> <phphlm$3jm$1@dont-email.me> <1bmuv2sklm.fsf@pfeifferfamily.net>Show Full Headers
Complete Article Headers
X-Received: by 2002:a5e:c919:: with SMTP id z25-v6mr6757719iol.36.1531010589765; Sat, 07 Jul 2018 17:43:09 -0700 (PDT) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 2002:a6b:4908:: with SMTP id u8-v6ls1473262iob.24.gmail; Sat, 07 Jul 2018 17:43:08 -0700 (PDT) X-Received: by 2002:a6b:4e0b:: with SMTP id c11-v6mr6568817iob.22.1531010588916; Sat, 07 Jul 2018 17:43:08 -0700 (PDT) MIME-Version: 1.0 Path: mbox-mo1.pugleaf.net!l67-v6ni5462itl.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.snarked.org!news.ripco.com!adore2!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <jo...@taugh.com> Newsgroups: alt.folklore.computers Subject: Re: fork queue, The Peter Principle Date: Sun, 8 Jul 2018 00:43:08 -0000 (UTC) Organization: Taughannock Networks Message-ID: <phrmms$doc$1@gal.iecc.com> References: <pho0pp$s4$1@dont-email.me> <php3bq$hpq$1@dont-email.me> <phphlm$3jm$1@dont-email.me> <1bmuv2sklm.fsf@pfeifferfamily.net> Injection-Date: Sun, 8 Jul 2018 00:43:08 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="14092"; mail-complaints-to="ab...@iecc.com" Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: jo...@iecc.com (John Levine) Bytes: 1879 Lines: 22 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit