|
@@ -220,20 +220,7 @@ scdrv_dispatch_event(char *event, int len)
|
|
" Sending SIGPWR to init...\n");
|
|
" Sending SIGPWR to init...\n");
|
|
|
|
|
|
/* give a SIGPWR signal to init proc */
|
|
/* give a SIGPWR signal to init proc */
|
|
-
|
|
|
|
- /* first find init's task */
|
|
|
|
- read_lock(&tasklist_lock);
|
|
|
|
- for_each_process(p) {
|
|
|
|
- if (p->pid == 1)
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- if (p) {
|
|
|
|
- force_sig(SIGPWR, p);
|
|
|
|
- } else {
|
|
|
|
- printk(KERN_ERR "Failed to signal init!\n");
|
|
|
|
- snsc_shutting_down = 0; /* so can try again (?) */
|
|
|
|
- }
|
|
|
|
- read_unlock(&tasklist_lock);
|
|
|
|
|
|
+ kill_proc(1, SIGPWR, 0);
|
|
} else {
|
|
} else {
|
|
/* print to system log */
|
|
/* print to system log */
|
|
printk("%s|$(0x%x)%s\n", severity, esp_code, desc);
|
|
printk("%s|$(0x%x)%s\n", severity, esp_code, desc);
|