diff options
author | lns <matzeton@googlemail.com> | 2018-05-29 20:27:53 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2018-05-29 20:27:53 +0200 |
commit | ac567dfe566d582fb59297487822a3afadff1974 (patch) | |
tree | 65595a7076756b9caddd7410c160b3a184a716c3 /src/main.c | |
parent | a8416237f30f77c5e78b06a58298442245911fb5 (diff) |
POTD skeleton #80.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ static void jail_preinit(const char *jail_ports[], jail_ctx *ctx[], D("Initialising jail service on port %s", jail_ports[i]); jail_init_ctx(&ctx[i], MAX_STACKSIZE); - //jail[i]->newroot = strdup("/home/lns/git/busybox/sysroot"); + //ctx[i]->newroot = strdup("/home/lns/git/busybox/sysroot"); ctx[i]->newroot = strdup("/home/toni/git/busybox/_install"); ABORT_ON_FATAL( jail_setup(ctx[i], "127.0.0.1", jail_ports[i]), "Jail daemon setup" ); @@ -103,7 +103,7 @@ static pid_t rdr_init(redirector_ctx *ctx[], const size_t siz) "Redirector event setup" ); N("%s", "Redirector epoll mainloop"); - rdr_pid = redirector_daemonize( event, ctx, siz ); + rdr_pid = redirector_daemonize( &event, ctx, siz ); ABORT_ON_FATAL( rdr_pid < 1, "Server epoll mainloop" ); return rdr_pid; |