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    [W:0.020 / U:0.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site