Re: fork() Problem?

Yavuz Selim Komur (komur@albatros.bcc.bilkent.edu.tr)
Wed, 5 May 1999 09:19:54 +0300 (EEST)


On Tue, 4 May 1999, David Miller wrote:

>
> You do not initialize the "status" variable passed to wait(), this is
> probably why it crashes on SunOS. "status" could contain anything,
> any value, and probably it contains garbage or a wild pointer.

Execuse me. I didn't well defined my problem. SegFault? ignore it.

Problem is sequence error.

if (pid = fork())
printf("Main Program");
else
printf("Child Program");

it's clear?

>
> Later,
> David S. Miller
> davem@redhat.com
>

Yavuz
---------------------------
The FORCE will be with you.

-
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/