#perl, v5.8.8 built for x86_64-linux-thread-multi _debug( "WRITE to sock (" . length($tmData) . ")); my $bytesWrote = $itosSock->syswrite($tmData); #perl signals SIGPIPE with a return code 141 (will not execute the next line) _debug( "WROTE ($bytesWrote) to sock" ); # I use socat as the client-side and it closes.