Added SIGPIPE handling for iOS.
Merge pull request #2194 from hopToDev/master

Added SIGPIPE handling for iOS.