lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fork() Problem?
Correct me if I'm wrong, but I don't believe there is any order
that fork is required to run in, and on SMP machines you're most
definately asking for trouble if you assume one runs before the
other...

Yavuz Selim Komur wrote:
>
> 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/

--
Zinx Verituse
pgp key fingerprint: 9F E5 C9 74 7E B8 FF 32 9B B1 31 99 C4 00 8E 67
gpg key fingerprint: B907 8474 62E3 3432 2EBC 2197 A245 4F19 9314 0EFD
(finger @bliss.penguinpowered.com for keys, when applicable..)

-
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.271 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site