halt/reboot/poweroff: improve error reporting

function                                             old     new   delta
halt_main                                            207     185     -22
This commit is contained in:
Denis Vlasenko
2009-03-07 01:54:24 +00:00
parent a6b6f05379
commit fb1a23d73b
2 changed files with 2 additions and 2 deletions

View File

@ -95,6 +95,6 @@ int halt_main(int argc UNUSED_PARAM, char **argv)
rc = reboot(magic[which]);
if (rc)
bb_error_msg("no");
bb_perror_nomsg_and_die();
return rc;
}