]> git.mxchange.org Git - simgear.git/commit
Socket: do not crash on writing to broken pipe.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 6 Jan 2014 11:10:39 +0000 (12:10 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 6 Jan 2014 11:17:59 +0000 (12:17 +0100)
commitd82c8eb94598220271514ce8ca5fad2422714c52
tree7525f1334e34003bc5718a78726f731cfd77d397
parentbecbad7ea4719e5001f88cdc25328133b44b5ea2
Socket: do not crash on writing to broken pipe.

Writing to a closed socket on all Unix/Linux systems raises
a SIGPIPE signal which immediately closes the program. Disabling
raising of SIGPIPE allows proper error handling by checking the
return values of send/sendto and getting the EPIPE in errno.
simgear/io/raw_socket.cxx