You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle waitpid race condition when SIGCHLD is set to SIG_IGN (#57241)
The `fork()` we do here relies on `SIGCHLD` to make sure that we don't
race against the child.
This is easy to see in an embedding application that dynamically links
`libjulia`:
```c
int main(int argc, char *argv[])
{
signal(SIGCHLD, SIG_IGN);
void *handle = dlopen("path/to/libjulia.so", RTLD_LAZY);
return 0;
}
```
Without this change, this fails with an error message:
```
Error during libstdcxxprobe in parent process:
waitpid: No child processes
```
Resolves#57240
0 commit comments