diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-08 17:19:47 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-08 17:19:47 +0200 |
commit | bc240cca7918d6e6f4f56fbe19d32eb20f07a567 (patch) | |
tree | b803bc1e6fb6446369fc063e7efdd53152745569 /src/main.c | |
parent | dad140b0a494c416532a546fdd034dc27ad05b8c (diff) |
POTD skeleton #46.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -24,7 +24,8 @@ int main(int argc, char *argv[]) jail_ctx *jail[jail_siz]; forward_ctx *ssh_fwd = NULL; event_ctx *srv_event = NULL; - int jail_epoll_fd, proc_status; + event_ctx *jail_event = NULL; + int proc_status; pid_t daemon_pid, srv_pid, jail_pid, wpid; (void) argc; @@ -60,10 +61,9 @@ int main(int argc, char *argv[]) "Jail validation" ); } - jail_epoll_fd = jail_setup_epoll( jail, jail_siz ); - D2("Jail epoll fd: %d", jail_epoll_fd); - ABORT_ON_FATAL( jail_epoll_fd < 0, "Jail daemon epoll setup" ); - jail_pid = jail_daemonize(jail_epoll_fd, jail, jail_siz); + ABORT_ON_FATAL( jail_setup_event( jail, jail_siz, &jail_event ), + "Jail daemon epoll setup" ); + jail_pid = jail_daemonize(&jail_event, jail, jail_siz); ABORT_ON_FATAL( jail_pid < 1, "Jail daemon startup" ); { |