Set SO_NOSIGPIPE on Darwin to stop from breaking into the debugger every time a connection closes

This commit is contained in:
Cameron Gutman
2014-10-21 14:17:52 -04:00
parent affcb84d36
commit e56f13b123
2 changed files with 19 additions and 0 deletions
+3
View File
@@ -21,6 +21,9 @@
# endif
#else
# define LC_POSIX
# if defined(__APPLE__)
# define LC_DARWIN
# endif
#endif
#include <stdio.h>