aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2018-05-29 20:27:53 +0200
committerlns <matzeton@googlemail.com>2018-05-29 20:27:53 +0200
commitac567dfe566d582fb59297487822a3afadff1974 (patch)
tree65595a7076756b9caddd7410c160b3a184a716c3 /src/main.c
parenta8416237f30f77c5e78b06a58298442245911fb5 (diff)
POTD skeleton #80.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9d7b6f7..c6b3e32 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;