]> diplodocus.org Git - nmh/commit
If fork(2) fails then die; don't fall through to execve(2).
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 11:12:58 +0000 (12:12 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 12:10:13 +0000 (13:10 +0100)
commit85cc92f23306d688ed9b97d0f7892410c842c447
treeca3a8aea68e418fc86141b08dacc7a76df9cd171
parent6e613a1064f418cb3658e1e6c8aa14768816ee5c
If fork(2) fails then die;  don't fall through to execve(2).

It's already been agreed that failure to fork() is so rare these days
that multiple attempts aren't required.  Nor should the code persevere
by calling execve() as if the fork had succeeded, else why bother to
fork?  Instead, die.
uip/rcvdist.c
uip/whatnowsbr.c
uip/whom.c