Article View: alt.folklore.computers
Article #624792Re: The Peter Principle
From: Ahem A Rivets Shot
Date: Sat, 07 Jul 2018 06:24
Date: Sat, 07 Jul 2018 06:24
58 lines
4019 bytes
4019 bytes
On Sat, 7 Jul 2018 00:05:12 -0500 Charles Richmond <nume...@aquaporin4.com> wrote: > On 7/6/2018 8:00 PM, Dan Espen wrote: > > Charles Richmond <nume...@aquaporin4.com> writes: > > > >> On 7/6/2018 2:37 PM, Charlie Gibbs wrote: > >>> On 2018-07-06, Ahem A Rivet's Shot <ste...@eircom.net> wrote: > >>> > >>>> On 6 Jul 2018 15:50:16 GMT > >>>> Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > >>>> > >>>>> On 2018-07-06, Gareth's Downstairs Computer > >>>>> <headstone255.but.n...@yahoo.com> wrote: > >>>>> > >>>>>> Do incompetent computer programmers become technical authors? > >>>>> > >>>>> Nah, they go straight into management. > >>>> > >>>> Yep, the sad thing is when it happens to competent > >>>> programmers. > >>> > >>> Which brings to mind that old Unix joke: > >>> > >>> A programmer went into management and turned out to be quite good at > >>> it. One of his old buddies, remembering how much fun he had as a > >>> programmer, asked him whether he ever considered moving back. "No," > >>> the manager said. "As you know, there is no return for a successful > >>> exec()." > >>> > >> 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 are no parent and child processes with exec(), it's all one process. Calling exec() replaces the code in the *current* process with new code, if it succeeds it cannot return because the return point no longer exists. One obvious failure mode that leaves the original code intact is being unable to read the file containing the new code in which case a return is trivially possible and expected. If you want a child you have to fork(). -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/
Technical Details
Message-ID:
<20180707072422.f1f40a1cb5d9a8d9a886abdb@eircom.net>Path:
mbox-mo1.pugleaf.net!d26-v6ni18340wmb.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:b8cf:: with SMTP id i198-v6mr1073650wmf.13.1530945003418; Fri, 06 Jul 2018 23:30:03 -0700 (PDT) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 2002:adf:9007:: with SMTP id h7-v6ls2648615wrh.14.gmail; Fri, 06 Jul 2018 23:30:02 -0700 (PDT) X-Received: by 2002:a5d:4a11:: with SMTP id m17-v6mr418052wrq.24.1530945002757; Fri, 06 Jul 2018 23:30:02 -0700 (PDT) Path: mbox-mo1.pugleaf.net!d26-v6ni18340wmb.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: Ahem A Rivet's Shot <ste...@eircom.net> Newsgroups: alt.folklore.computers Subject: Re: The Peter Principle Date: Sat, 7 Jul 2018 07:24:22 +0100 Organization: A noiseless patient Spider Lines: 58 Message-ID: <20180707072422.f1f40a1cb5d9a8d9a886abdb@eircom.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="66363155ae69a0a1624fe4d73e76b1c5"; logging-data="27842"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX1/3zt1/ZpGT+wHjqtPjiOmIgNDBfqHATbo=" Cancel-Lock: sha1:Dj91YbL0RsEYsjxn/2JQkqY6VJ8= X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) X-Clacks-Overhead: "GNU Terry Pratchett" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit