mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-13 02:27:48 +00:00
make compiler stop complaining
This commit is contained in:
parent
46810f58d3
commit
57fac728c6
@ -54,8 +54,11 @@ static void mycallback(esl_socket_t server_sock, esl_socket_t client_sock, struc
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* hotwire the socket to STDIN/STDOUT */
|
/* hotwire the socket to STDIN/STDOUT */
|
||||||
dup2(client_sock, STDIN_FILENO);
|
if (!(dup2(client_sock, STDIN_FILENO)) && !(dup2(client_sock, STDOUT_FILENO))){
|
||||||
dup2(client_sock, STDOUT_FILENO);
|
esl_disconnect(&handle);
|
||||||
|
esl_log(ESL_LOG_ERROR, "Socket Error hotwiring socket to STDIN/STDOUT!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
system(path);
|
system(path);
|
||||||
esl_disconnect(&handle);
|
esl_disconnect(&handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user