Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,9 @@ NOBDEF bool nob_proc_wait(Nob_Proc proc)
#else
for (;;) {
int wstatus = 0;
if (waitpid(proc, &wstatus, 0) < 0) {
int r = waitpid(proc, &wstatus, 0);
if (r < 0) {
if (r == -1 && errno == EINTR) continue; // continue if host process is interrupted
nob_log(NOB_ERROR, "could not wait on command (pid %d): %s", proc, strerror(errno));
return false;
}
Expand Down