提交 57fac728 authored 作者: Ken Rice's avatar Ken Rice

make compiler stop complaining

上级 46810f58
......@@ -54,8 +54,11 @@ static void mycallback(esl_socket_t server_sock, esl_socket_t client_sock, struc
}
/* hotwire the socket to STDIN/STDOUT */
dup2(client_sock, STDIN_FILENO);
dup2(client_sock, STDOUT_FILENO);
if (!(dup2(client_sock, STDIN_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);
esl_disconnect(&handle);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论