don't deal with pid files
we can't write out pid files since the code is using fork() and at fork handler will delete the pid file.
This commit is contained in:
@@ -173,7 +173,6 @@ main(int argc, char **argv)
|
|||||||
mini_inetd(debug_port, &sfd);
|
mini_inetd(debug_port, &sfd);
|
||||||
} else {
|
} else {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
pidfile(NULL);
|
|
||||||
start_server(context, port_str);
|
start_server(context, port_str);
|
||||||
#else
|
#else
|
||||||
struct sockaddr_storage __ss;
|
struct sockaddr_storage __ss;
|
||||||
@@ -187,7 +186,6 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 &&
|
if(roken_getsockname(STDIN_FILENO, sa, &sa_size) < 0 &&
|
||||||
rk_SOCK_ERRNO == ENOTSOCK) {
|
rk_SOCK_ERRNO == ENOTSOCK) {
|
||||||
pidfile(NULL);
|
|
||||||
start_server(context, port_str);
|
start_server(context, port_str);
|
||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|||||||
Reference in New Issue
Block a user