mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@28788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1803,13 +1803,17 @@ static void ast_remotecontrol(char * data)
|
|||||||
|
|
||||||
if (option_exec && data) { /* hack to print output then exit if asterisk -rx is used */
|
if (option_exec && data) { /* hack to print output then exit if asterisk -rx is used */
|
||||||
char tempchar;
|
char tempchar;
|
||||||
|
#ifdef __Darwin__
|
||||||
struct pollfd fds[0];
|
struct pollfd fds[0];
|
||||||
fds[0].fd = ast_consock;
|
fds[0].fd = ast_consock;
|
||||||
fds[0].events = POLLIN;
|
fds[0].events = POLLIN;
|
||||||
fds[0].revents = 0;
|
fds[0].revents = 0;
|
||||||
while(poll(fds, 1, 100) > 0) {
|
while (poll(fds, 1, 100) > 0) {
|
||||||
ast_el_read_char(el, &tempchar);
|
ast_el_read_char(el, &tempchar);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
while (!ast_el_read_char(el, &tempchar));
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|||||||
Reference in New Issue
Block a user