diff options
author | lns <matzeton@googlemail.com> | 2018-04-25 08:50:29 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2018-04-25 08:50:29 +0200 |
commit | 03e137c2193d550dda156f86ca68c896f0dffe84 (patch) | |
tree | dfb4e7445a8eda1e5b9c606083536825c90b8145 /src/main.c | |
parent | 6e7b5102c33a510f93b7b418d0bfc082ae2595f7 (diff) |
POTD skeleton #28.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -42,6 +42,7 @@ int main(int argc, char *argv[]) E_STRERR("Daemonize"); exit(EXIT_FAILURE); } + D2("Master pid: %d", daemon_pid); memset(jail, 0, sizeof(jail)); jail_ports[0] = "33333"; @@ -57,9 +58,9 @@ int main(int argc, char *argv[]) D2("%s", "Jail daemon epoll setup"); epoll_fd = jail_setup_epoll( jail, jail_siz ); - D2("epoll_fd: %d", epoll_fd); + D2("Jail epoll fd: %d", epoll_fd); ABORT_ON_FATAL( epoll_fd < 0, "Jail daemon epoll setup" ); - ABORT_ON_FATAL( jail_daemonize_epoll(epoll_fd, jail, jail_siz), + ABORT_ON_FATAL( jail_daemonize_epoll(epoll_fd, jail, jail_siz) < 0, "Jail daemon startup" ); { @@ -88,7 +89,7 @@ int main(int argc, char *argv[]) D2("%s", "Server epoll setup"); epoll_fd = server_setup_epoll( srv, srv_siz ); - D2("epoll_fd: %d", epoll_fd); + D2("Server epoll fd: %d", epoll_fd); ABORT_ON_FATAL( epoll_fd < 0, "Server epoll setup" ); ABORT_ON_FATAL( setgid(65534), "Change group" ); |