[LCP]Fork freezes when forking more then one
juman
juman at chello.se
Tue Aug 26 06:24:01 UTC 2003
That's true... a little mistake... Thanks! But not the answer of the
bigger question unfortunately ;-)
/juman
On Mon, Aug 25, 2003 at 01:26:35PM -0700, Bill Rausch wrote:
> Without looking closely, your malloc appears wrong:
>
> > prog *run;
> >
> > run = (prog *) malloc (sizeof (run));
>
> It should be:
>
> run = (prog *) malloc (sizeof (prog));
>
>
> --
> Bill Rausch
>
> "Try to learn something about everything and everything about something."
> (Thomas H. Huxley)
More information about the linuxCprogramming
mailing list