aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-08 17:19:47 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-08 17:19:47 +0200
commitbc240cca7918d6e6f4f56fbe19d32eb20f07a567 (patch)
treeb803bc1e6fb6446369fc063e7efdd53152745569 /src/main.c
parentdad140b0a494c416532a546fdd034dc27ad05b8c (diff)
POTD skeleton #46.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 91b8002..5b2248c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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" );
{