diff options
Diffstat (limited to 'srcx')
-rw-r--r-- | srcx/jkill.c | 5 | ||||
-rw-r--r-- | srcx/util.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/srcx/jkill.c b/srcx/jkill.c index d3fdf53..7125350 100644 --- a/srcx/jkill.c +++ b/srcx/jkill.c @@ -181,6 +181,7 @@ static void parse_jail_opts(int argc, char* argv[]) g_verbose = 1; g_force = 1; g_usescripts = 1; + g_restart = 0; } else if(strcmp(argv[0], "reboot")) @@ -188,7 +189,7 @@ static void parse_jail_opts(int argc, char* argv[]) g_verbose = 1; g_force = 1; g_usescripts = 1; - g_reboot = 1; + g_restart = 1; } else @@ -304,7 +305,7 @@ static int kill_jail(const char* jail) /* Open the kernel interface */ kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL, - O_RDONLY, errbuf); + O_RDONLY, errbuf); if(kd == NULL) errx(1, "couldn't connect to kernel: %s", errbuf); diff --git a/srcx/util.c b/srcx/util.c index ebdd873..1911d2f 100644 --- a/srcx/util.c +++ b/srcx/util.c @@ -142,6 +142,16 @@ done: return jid; } +kvm_t open_kvm_handle(char* errbuf) +{ + /* + * Basically the kvm routines won't work in + * a jail unless there's a /dev/null device + * for us to use as the file name. If it's + * missing we have to create it + */ +} + /* * in_jail * This code was written by James E. Quick mailto:jq@quick.com |