]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
shutdown socket before closing to avoid blocking
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Apr 2012 19:28:01 +0000 (14:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Apr 2012 19:28:01 +0000 (14:28 -0500)
libs/esl/src/esl.c

index 02ab7ef27162c2539736228a0bb485f34e2ec6cd..719912b1e8f4597bccc57513eb4b263f6595f9ae 100644 (file)
@@ -51,7 +51,7 @@
 
 #include <esl.h>
 #ifndef WIN32
-#define closesocket(x) close(x)
+#define closesocket(x) shutdown(x, 2); close(x)
 #include <fcntl.h>
 #include <errno.h>
 #else