git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
sbus
/
char
/
bbc_envctrl.c
diff --git
a/drivers/sbus/char/bbc_envctrl.c
b/drivers/sbus/char/bbc_envctrl.c
index
1cc706e
..
a54e414
100644
(file)
--- a/
drivers/sbus/char/bbc_envctrl.c
+++ b/
drivers/sbus/char/bbc_envctrl.c
@@
-4,14
+4,9
@@
* Copyright (C) 2001 David S. Miller (davem@redhat.com)
*/
* Copyright (C) 2001 David S. Miller (davem@redhat.com)
*/
-#define __KERNEL_SYSCALLS__
-static int errno;
-
-#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/kthread.h>
-#include <linux/sched.h>
-#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/delay.h>
+#include <linux/kmod.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
@@
-200,7
+195,7
@@
static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp)
printk(KERN_CRIT "kenvctrld: Shutting down the system now.\n");
shutting_down = 1;
printk(KERN_CRIT "kenvctrld: Shutting down the system now.\n");
shutting_down = 1;
- if (
execve("/sbin/shutdown", argv, envp
) < 0)
+ if (
call_usermodehelper("/sbin/shutdown", argv, envp, 0
) < 0)
printk(KERN_CRIT "envctrl: shutdown execution failed\n");
}
printk(KERN_CRIT "envctrl: shutdown execution failed\n");
}