mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
init: reboot, acpid
This commit is contained in:
@@ -14,7 +14,7 @@ int main() {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (write(fd, &c, 1)) {
|
||||
if (write(fd, &c, 1) < 0) {
|
||||
perror("poweroff: write");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user