Also, the output of strace or truss would help.
In reply to Re^3: How I'm sure syswrite has finished? by perl5ever in thread How I'm sure syswrite has finished? by casiano