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