Re: fork() Problem?

Simon Kenyon (simon@koala.ie)
Wed, 05 May 1999 22:51:56 +0100 (BST)


On 05-May-99 Richard B. Johnson wrote:
> The problem is that if anybody writes code like this, they should be
> terminated with extreme prejudice. This is using a gcc compiler bug as
> a feature.

i would probably write it as:

if ((pid = fork()) != 0)

but:

if (pid = fork())

is perfectly kosher C
has been for 20 years

methinks you've made a mistake

--
Simon Kenyon

irial limited mailto:simon@irial.com 10 Castle Avenue tel:+353-1-8530624 Clontarf gsm:+353-87-2805470 Dublin 3 http://www.irial.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/