diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 16:40:18 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 16:40:18 +0000 |
commit | 56c64cbe5701f9b11b965407a3e56e4b6a216214 (patch) | |
tree | a0738cdc4565e1d2809c6b895fd3715e5d7d0c7e /main/file.c | |
parent | e46eb0e63e5d098e2ee821de628bd480d3e6a080 (diff) |
0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41694 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r-- | main/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c index 5bafcfe48..6cacdc807 100644 --- a/main/file.c +++ b/main/file.c @@ -1002,7 +1002,7 @@ static int waitstream_core(struct ast_channel *c, const char *breakon, } 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)); |