packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Good evening
I was reading perldoc about fork and noticed this:
"Calling exec() within a pseudo-process actually spawns the requested executable in a separate process and waits for it to complete before exiting with the same exit status as that process"
I have noticed that if my forked process returns any output the parent process waits and in turn splats my application!
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?
I need to grab the PID of the fork to manage it later..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Fork exec and not wait?
by eyepopslikeamosquito (Archbishop) on Jan 24, 2013 at 19:30 UTC | |
by packetstormer (Monk) on Jan 24, 2013 at 19:39 UTC | |
by eyepopslikeamosquito (Archbishop) on Jan 24, 2013 at 19:54 UTC | |
by kennethk (Abbot) on Jan 24, 2013 at 20:06 UTC | |
Re: Fork exec and not wait?
by zentara (Archbishop) on Jan 25, 2013 at 09:20 UTC | |
Re: Fork exec and not wait?
by dasgar (Priest) on Jan 24, 2013 at 19:53 UTC | |
by packetstormer (Monk) on Jan 24, 2013 at 20:00 UTC | |
by eyepopslikeamosquito (Archbishop) on Jan 24, 2013 at 20:09 UTC | |
by packetstormer (Monk) on Jan 24, 2013 at 20:32 UTC | |
by Anonymous Monk on Jan 25, 2013 at 03:16 UTC |
Back to
Seekers of Perl Wisdom