[LCP]Fork freezes when forking more then one

Bill Rausch BRausch at owt.com
Tue Aug 26 04:28:01 UTC 2003


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