lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fork() Problem?
Date
> Hi,
> this problem maybe a gcc problem.

No its a programming error

> main() {
> int i=0, *status;

^^^^^^^
uninitialised pointer
> wait(status);

Then you pass it to wait.

Then quite predictibly things go boom

Try

int i=0, status

and

wait(&status)


-
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    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site