Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39847
b: refs/heads/master
c: 872ec64
h: refs/heads/master
i:
  39845: 3338a65
  39843: 4985dd9
  39839: cfccba2
v: v3
  • Loading branch information
David S. Miller committed Oct 18, 2006
1 parent 4fe4278 commit f66d53f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b48194bf0dc0f8e2b617fab10df885513fbb3bad
refs/heads/master: 872ec6484720e7ddfebb8e15c232fa7ca158ef2e
4 changes: 2 additions & 2 deletions trunk/drivers/sbus/char/bbc_envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

#include <linux/kthread.h>
#include <linux/syscalls.h>
#include <linux/delay.h>
#include <linux/kmod.h>
#include <asm/oplib.h>
#include <asm/ebus.h>

Expand Down Expand Up @@ -195,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;
if (kernel_execve("/sbin/shutdown", argv, envp) < 0)
if (call_usermodehelper("/sbin/shutdown", argv, envp, 0) < 0)
printk(KERN_CRIT "envctrl: shutdown execution failed\n");
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/sbus/char/envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/miscdevice.h>
#include <linux/syscalls.h>
#include <linux/kmod.h>

#include <asm/ebus.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -976,7 +976,7 @@ static void envctrl_do_shutdown(void)

inprog = 1;
printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n");
ret = kernel_execve("/sbin/shutdown", argv, envp);
ret = call_usermodehelper("/sbin/shutdown", argv, envp, 0);
if (ret < 0) {
printk(KERN_CRIT "kenvctrld: WARNING: system shutdown failed!\n");
inprog = 0; /* unlikely to succeed, but we could try again */
Expand Down

0 comments on commit f66d53f

Please sign in to comment.