fork - problem with creating child processes in xcode -
fork - problem with creating child processes in xcode -
i trying write , debug code in xcode create several processes (which represent nodes in network) , these processes have utilize ipc's communicate. @ first getting error in msgctl, trying debug using fprintf file, when stoped creating kid processes together, wrote printf in form
pid[0]=fork(); if(pid[0]==0) { printf("chicken"); } but nil prints, assuming no kid process created... know should do? thanks
maybe need flush stdout, this
printf("chicken"); fflush(stdout); xcode fork process pid
Comments
Post a Comment