From fbebf378e7635d1d04b075d2a7ac965c88fba5e1 Mon Sep 17 00:00:00 2001 From: Konstantin Pereiaslov Date: Sun, 3 Sep 2023 23:48:04 -0500 Subject: [PATCH] Move code comment --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index ba75a7b..6f53d06 100644 --- a/main.c +++ b/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) {