lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fork() Problem?
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.137 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site