[asterisk-commits] file: trunk r41694 - /trunk/main/file.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Sep 1 09:40:19 MST 2006
Author: file
Date: Fri Sep 1 11:40:18 2006
New Revision: 41694
URL: http://svn.digium.com/view/asterisk?rev=41694&view=rev
Log:
0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
Modified:
trunk/main/file.c
Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?rev=41694&r1=41693&r2=41694&view=diff
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Fri Sep 1 11:40:18 2006
@@ -1002,7 +1002,7 @@
}
if (ms < 0)
ms = 1000;
- if (!cmdfd) {
+ if (cmdfd > -1) {
res = ast_waitfor(c, ms);
if (res < 0) {
ast_log(LOG_WARNING, "Select failed (%s)\n", strerror(errno));
More information about the asterisk-commits
mailing list