init: reboot, acpid

This commit is contained in:
Matheus
2024-09-01 23:14:12 -03:00
parent a876a61d08
commit 7a9f5c48c7
7 changed files with 119 additions and 18 deletions
+1 -1
View File
@@ -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;
}