fix: add fork failure check in integration test

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-07 20:31:13 +00:00
parent bbf560efe2
commit 484e0cad36

View File

@@ -39,6 +39,10 @@ int main(void) {
/* 2. start the looper */
pid_t pid = fork();
if (pid < 0) {
perror("fork");
return 1;
}
if (pid == 0) {
execl("./looper", "looper", NULL);
perror("execl");