← Commit list

41f677ec5

Valentin Lab
Valentin Lab
2025-07-30
SUCCESS Duration: 154s

Subject

crond: reap orphaned grandchildren to prevent zombie buildup

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/crond.c+4 -0
@@ -1001,6 +1001,10 @@ static int check_completions(void)
/* else: r == 0: "process is still running" */
file->cf_has_running = 1;
}
+
+ /* Reap any other children we don't actively track */
+ while (waitpid(-1, NULL, WNOHANG) > 0);
+
//FIXME: if !file->cf_has_running && file->deleted: delete it!
//otherwise deleted entries will stay forever, right?
num_still_running += file->cf_has_running;