I tried wait_all_children (see answer below) but without success.
Somehow the $pm->finish (I also tried a plain exit) with the same result aborts the whole writing?.
I guess that somehow the call to syswrite produces a decoupled process in the remote machine than is in charge of fulfilling the writing (since it is a huge message). When the exit of the forked local child occurs the remote process is aborted?
In reply to Re^2: How I'm sure syswrite has finished?
by casiano
in thread How I'm sure syswrite has finished?
by casiano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |