in reply to
Re: Fork exec and not wait?
in thread Fork exec and not wait?
I am running Unix
I have noticed that if my forked process returns any output the parent process waits and in turn splats my application!
I notice that when I fork, in my script, and if the forked process has any form of output (that would usually go to STDOUT when run from a terminal) the fork never finished, and in turn halts my main program (or, to the user - splats it!)
Is there anyway to either fork a process and force its output to /dev/null or simply make the parent ignore the child and continue?
Why would you want to do that? You are going to have supply more context and describe what you are trying to achieve.
I want to achieve this to avoid the problem I outlined above. I don't mind if I could catch the return code or output and then move on, but as I explain above and output from the forked process causes the script to wait, indefinitely.