Skip to content

Commit

Permalink
fix shutdown again
Browse files Browse the repository at this point in the history
  • Loading branch information
anzz1 authored May 30, 2023
1 parent b3828c6 commit 77d784d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,12 @@ void powerOff(void) {
GFX_blitBodyCopy(screen, msg, 0,0,Screen.width,Screen.height);
SDL_Flip(screen);
sleep(1);
system("shutdown");
while (1) pause();
while(1) {
execlp("shutdown", "shutdown", NULL);
pause(); // we will never reach here when execlp is successful
}
//system("shutdown");
//while (1) pause();
}
}

Expand Down

0 comments on commit 77d784d

Please sign in to comment.