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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -