We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66ad0d commit 38a08ccCopy full SHA for 38a08cc
src/runtime/runtime.c
@@ -1865,7 +1865,10 @@ int main(int argc, char* argv[]) {
1865
} else {
1866
/* Parent process - wait for AppRun to finish, then close pipe */
1867
int status;
1868
- pid_t waited_pid = waitpid(apprun_pid, &status, 0);
+ pid_t waited_pid;
1869
+ do {
1870
+ waited_pid = waitpid(apprun_pid, &status, 0);
1871
+ } while (waited_pid == -1 && errno == EINTR);
1872
if (waited_pid == -1) {
1873
perror("waitpid error");
1874
close(keepalive_pipe[0]);
0 commit comments