Article View: alt.folklore.computers
Article #624800Re: The Peter Principle
From: Joe Pfeiffer
Date: Sat, 07 Jul 2018 23:16
Date: Sat, 07 Jul 2018 23:16
25 lines
2593 bytes
2593 bytes
Charles Richmond <nume...@aquaporin4.com> writes: > On 7/6/2018 8:00 PM, Dan Espen wrote: >> Charles Richmond <nume...@aquaporin4.com> writes: >>>> >>> Can an unsuccessful exec() call return??? And where would it return to??? >> >> The answer is in the man page: >> >> RETURN VALUES >> If a function in the exec family returns to the calling process image, >> an error has occurred; the return value is -1 and errno is set to >> indicate the error. >> > > The calling process for exec() must be the child process. ISTM the > child process must signal the parent process and abort... if exec() > fails. 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(). If it's a normal fork&exec, the child process can just exit() (presumably with an error return code) and the parent will find out about it in any of the ways already available (including, of course, SIGCHLD).
Technical Details
Message-ID:
<1bmuv2sklm.fsf@pfeifferfamily.net>Path:
mbox-mo1.pugleaf.net!o12-v6ni39123wmc.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mailReferences:
<pho0pp$s4$1@dont-email.me> <pho33o225k4@news4.newsguy.com> <20180706191634.7cc7ff5ecb60db674ea8c73e@eircom.net> <phogdr12dbc@news3.newsguy.com> <phoi8d$mnh$1@dont-email.me> <php3bq$hpq$1@dont-email.me> <phphlm$3jm$1@dont-email.me>Show Full Headers
Complete Article Headers
X-Received: by 2002:a1c:5584:: with SMTP id j126-v6mr1367381wmb.2.1531005366612; Sat, 07 Jul 2018 16:16:06 -0700 (PDT) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 2002:adf:9c91:: with SMTP id d17-v6ls3041017wre.13.gmail; Sat, 07 Jul 2018 16:16:05 -0700 (PDT) X-Received: by 2002:adf:f101:: with SMTP id r1-v6mr48159wro.26.1531005365956; Sat, 07 Jul 2018 16:16:05 -0700 (PDT) Path: mbox-mo1.pugleaf.net!o12-v6ni39123wmc.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Joe Pfeiffer <pfei...@cs.nmsu.edu> Newsgroups: alt.folklore.computers Subject: Re: The Peter Principle Date: Sat, 07 Jul 2018 17:16:05 -0600 Organization: A noiseless patient Spider Lines: 25 Message-ID: <1bmuv2sklm.fsf@pfeifferfamily.net> References: <pho0pp$s4$1@dont-email.me> <pho33o225k4@news4.newsguy.com> <20180706191634.7cc7ff5ecb60db674ea8c73e@eircom.net> <phogdr12dbc@news3.newsguy.com> <phoi8d$mnh$1@dont-email.me> <php3bq$hpq$1@dont-email.me> <phphlm$3jm$1@dont-email.me> Mime-Version: 1.0 Injection-Info: reader02.eternal-september.org; posting-host="f7b34ce0bc38dec9fe93c0d47c700c98"; logging-data="15978"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX1/v3pCuXGjc0py6SbI1bmBEnhE/fCODw8A=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cancel-Lock: sha1:VlRGjFToPflr79Afsqlp6kr/nXs= sha1:tQMzfryP6KqTJmu8TA0aVHn3cXU= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit