projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9edf55b
)
0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
author
Joshua Colp
<jcolp@digium.com>
Fri, 1 Sep 2006 16:40:18 +0000
(16:40 +0000)
committer
Joshua Colp
<jcolp@digium.com>
Fri, 1 Sep 2006 16:40:18 +0000
(16:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41694
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/file.c
patch
|
blob
|
history
diff --git
a/main/file.c
b/main/file.c
index
5bafcfe
..
6cacdc8
100644
(file)
--- 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));