mirror of
https://github.com/perk11/runwhenidle.git
synced 2026-01-09 13:48:01 -05:00
Move code comment
This commit is contained in:
2
main.c
2
main.c
@@ -155,7 +155,6 @@ long unsigned query_user_idle_time()
|
||||
return IDLE_TIME_NOT_AVAILABLE_VALUE;
|
||||
}
|
||||
int wait_for_pid_to_exit_synchronously(int pid) {
|
||||
// Wait for the child process to complete
|
||||
int status;
|
||||
waitpid(pid, &status, 0);
|
||||
int exit_code = WEXITSTATUS(status);
|
||||
@@ -174,6 +173,7 @@ int handle_interruption() {
|
||||
}
|
||||
resume_command(pid);
|
||||
}
|
||||
//Wait for the child process to complete
|
||||
return wait_for_pid_to_exit_synchronously(pid);
|
||||
}
|
||||
void sigint_handler(int signum) {
|
||||
|
||||
Reference in New Issue
Block a user