Skip to content

Dynamically loading libjulia with SIGCHLD ignored causes error waitpid: No child processes #57240

@topolarity

Description

@topolarity
#include <dlfcn.h>
#include <stdio.h>
#include <signal.h>

int main(int argc, char *argv[])
{
    signal(SIGCHLD, SIG_IGN);
    void *handle = dlopen(LIBJULIA_PATH, RTLD_LAZY);
    return 0;
}
$ gcc -fPIC testjulia.c -DLIBJULIA_PATH="`pwd`/usr/lib/libjulia.so"
$ ./a.out
Error during libstdcxxprobe in parent process:
waitpid: No child processes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions