Nov 30, 2009, 9:20 PM
Post #1 of 4
What is the best way to pass the single flag info to parent process?
I have parent P and child-C processes. Child-C runs the command using open3 like below:
my $pid = open3( \*CMD_IN, \*CMD_OUT, \*CMD_ERR, $cmd );
I am reading the error and output of this process successfully. I am setting one flag when some error encountered in the execution of $cmd. I want to pass this flag to main parent P. Could any one please tell me what is the best way to do this?
I am aware of using named Pipes, shared memory and socket IPC mechanisms but I think they are overhead when you have need to share just one flag.