The trouble with fork() (Re: IBM PC prehistory)

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Jan 18 01:31:07 AEST 1990


In article <DW31DR7xds13 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>Wouldn't it be nice if there was a sanctioned P1003 subset that replaced
>fork() with a combined fork()/exec() call (spawn?). Or just an addition
>of spawn to the standard as an alternative process creation mechanism:
>This would radically improve the performance of non-UNIX POSIX systems,
>without compromising the capability of the standard...

Wrong; fork() is more flexible than spawn(), and this is thoroughly
exploited by UNIX applications.  For example, a job control shell
has many things to do between the fork() and the exec() in the child
branch.

IEEE P1003 decided early on not to compromise UNIX semantics merely
to allow POSIX to be more readily implemented on non-UNIX platforms.



More information about the Comp.unix.questions mailing list