ctrlaltdel: display error message indicated by errno

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-02-25 21:30:19 +00:00
parent a971746370
commit dcb87944c2
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 1 additions and 1 deletions

View File

@ -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;