[asterisk-commits] tilghman: branch 1.4 r115884 - /branches/1.4/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 13 13:36:13 CDT 2008


Author: tilghman
Date: Tue May 13 13:36:13 2008
New Revision: 115884

URL: http://svn.digium.com/view/asterisk?view=rev&rev=115884
Log:
If the socket dies (read returns 0=EOF), return immediately.
(Closes issue #12637)

Modified:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=115884&r1=115883&r2=115884
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Tue May 13 13:36:13 2008
@@ -2307,7 +2307,7 @@
 			char buf[512] = "", *curline = buf, *nextline;
 			int not_written = 1;
 
-			if (read(ast_consock, buf, sizeof(buf) - 1) < 0) {
+			if (read(ast_consock, buf, sizeof(buf) - 1) <= 0) {
 				break;
 			}
 




More information about the asterisk-commits mailing list