make use rk_SOCK_ERRNO, make compile again
This commit is contained in:
@@ -182,11 +182,12 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 &&
|
if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 &&
|
||||||
SOCK_ERRNO == ENOTSOCK) {
|
rk_SOCK_ERRNO == ENOTSOCK) {
|
||||||
#endif
|
#endif
|
||||||
parse_ports(context, port_str ? port_str : "+");
|
parse_ports(context, port_str ? port_str : "+");
|
||||||
pidfile(NULL);
|
pidfile(NULL);
|
||||||
start_server(context, &sfd);
|
start_server(context);
|
||||||
|
sfd = STDIN_FILENO;
|
||||||
#ifndef NO_INETD
|
#ifndef NO_INETD
|
||||||
} else {
|
} else {
|
||||||
sfd = STDIN_FILENO;
|
sfd = STDIN_FILENO;
|
||||||
|
Reference in New Issue
Block a user