fix: add fork failure check in integration test
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user