C
Corey_G
I have some code that forks processes which then go off and do some
work. I am trying to make it so child processes can communicate back
to the parent that spawned them. From what I have read, it looks like
I want to use Pipes.
I also want to make sure this is portable to Windows. In the perlfork
documentation, it states: "The open(FOO, "|-") and open(BAR, "-|")
constructs are not yet implemented. This limitation can be easily
worked around in new code by creating a pipe explicitly." which then
goes on to give some sample code that doesn't work.. great.
So I am now looking at using either IO:
ipe or POE
ipe to do this
for me. Documentation for both is pretty sparse and the samples
aren't enough to get me going.
Does anyone have a sample piece of code using either of these modules
along with forking?
-Corey Goldberg
work. I am trying to make it so child processes can communicate back
to the parent that spawned them. From what I have read, it looks like
I want to use Pipes.
I also want to make sure this is portable to Windows. In the perlfork
documentation, it states: "The open(FOO, "|-") and open(BAR, "-|")
constructs are not yet implemented. This limitation can be easily
worked around in new code by creating a pipe explicitly." which then
goes on to give some sample code that doesn't work.. great.
So I am now looking at using either IO:
for me. Documentation for both is pretty sparse and the samples
aren't enough to get me going.
Does anyone have a sample piece of code using either of these modules
along with forking?
-Corey Goldberg