[asterisk-commits] trunk - r7436 in /trunk: ./
apps/app_externalivr.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Dec 12 11:31:45 CST 2005
Author: kpfleming
Date: Mon Dec 12 11:31:45 2005
New Revision: 7436
URL: http://svn.digium.com/view/asterisk?rev=7436&view=rev
Log:
Merged revisions 7433,7435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7433 | tilghman | 2005-12-12 11:19:29 -0600 (Mon, 12 Dec 2005) | 2 lines
Typo
........
r7435 | kpfleming | 2005-12-12 11:30:59 -0600 (Mon, 12 Dec 2005) | 2 lines
set all the child file descriptors to non-blocking so that we don't hang if the child fails to send a newline-terminated command or error message
........
Modified:
trunk/ (props changed)
trunk/apps/app_externalivr.c
Propchange: trunk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Dec 12 11:31:45 2005
@@ -1,1 +1,1 @@
-/branches/1.2:1-7430
+/branches/1.2:1-7435
Modified: trunk/apps/app_externalivr.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_externalivr.c?rev=7436&r1=7435&r2=7436&view=diff
==============================================================================
--- trunk/apps/app_externalivr.c (original)
+++ trunk/apps/app_externalivr.c Mon Dec 12 11:31:45 2005
@@ -345,8 +345,6 @@
goto exit;
}
- setvbuf(child_events, NULL, _IONBF, 0);
-
if (!(child_commands = fdopen(child_commands_fd, "r"))) {
ast_chan_log(LOG_WARNING, chan, "Could not open stream for child commands\n");
goto exit;
@@ -356,6 +354,10 @@
ast_chan_log(LOG_WARNING, chan, "Could not open stream for child errors\n");
goto exit;
}
+
+ setvbuf(child_events, NULL, _IONBF, 0);
+ setvbuf(child_commands, NULL, _IONBF, 0);
+ setvbuf(child_errors, NULL, _IONBF, 0);
res = 0;
More information about the asterisk-commits
mailing list