diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_xxx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 783aa5825dc..5beade18f06 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_xxx.c,v 1.11 2009/04/03 09:30:15 art Exp $ */ +/* $OpenBSD: kern_xxx.c,v 1.12 2009/08/10 11:22:10 deraadt Exp $ */ /* $NetBSD: kern_xxx.c,v 1.32 1996/04/22 01:38:41 christos Exp $ */ /* @@ -42,6 +42,8 @@ #include <sys/mount.h> #include <sys/syscallargs.h> +#include <net/if.h> + /* ARGSUSED */ int sys_reboot(struct proc *p, void *v, register_t *retval) @@ -66,6 +68,8 @@ sys_reboot(struct proc *p, void *v, register_t *retval) } } + if_downall(); + boot(SCARG(uap, opt)); atomic_clearbits_int(&p->p_flag, P_CPUPEG); /* XXX */ |