summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-05-19 16:10:57 +0000
committerStef Walter <stef@memberwebs.com>2004-05-19 16:10:57 +0000
commitd86ba2f5a45fd70e6503ba516eea9386bc176e22 (patch)
treef4bada479216547b85ce41a82ab2438c4979db40 /srcx
parente11f6612b763e48e70b88290a29e553976e88534 (diff)
Starting to solve the missing devfs problem
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jkill.c5
-rw-r--r--srcx/util.c10
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