From 484e0cad36ff05b28944fb0b6648739f1ea50a0a Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Thu, 7 May 2026 20:31:13 +0000 Subject: [PATCH] fix: add fork failure check in integration test Co-authored-by: aider (deepseek/deepseek-reasoner) --- tests/integration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration.c b/tests/integration.c index f57b165..0e65e27 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -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");