in reply to Bidirectional Communication using sockets and forking
if(defined($child_pid)){
You probably meant if($child_pid){, as testing defined $child_pid is true for both parent and child (pid==0), so they'll both execute the same code — which is most likely not what you want...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bidirectional Communication using sockets and forking
by Anonymous Monk on Dec 28, 2009 at 12:46 UTC | |
by almut (Canon) on Dec 28, 2009 at 13:06 UTC |