aboutsummaryrefslogtreecommitdiff
path: root/poweroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'poweroff.c')
-rw-r--r--poweroff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/poweroff.c b/poweroff.c
index 0f23b9562..bc8e67716 100644
--- a/poweroff.c
+++ b/poweroff.c
@@ -28,7 +28,7 @@ extern int poweroff_main(int argc, char **argv)
28{ 28{
29#ifdef BB_FEATURE_LINUXRC 29#ifdef BB_FEATURE_LINUXRC
30 /* don't assume init's pid == 1 */ 30 /* don't assume init's pid == 1 */
31 exit(kill(findPidByName("init"), SIGUSR2)); 31 exit(kill(*(findPidByName("init")), SIGUSR2));
32#else 32#else
33 exit(kill(1, SIGUSR2)); 33 exit(kill(1, SIGUSR2));
34#endif 34#endif