ctrlaltdel: display error message indicated by errno
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
a971746370
commit
dcb87944c2
|
@ -75,7 +75,7 @@ static int set_cad(const char *arg)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
if (reboot(cmd) < 0) {
|
||||
warnx("reboot");
|
||||
warn("reboot");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue