Sysdig cannot associate the Child process of fork in C language with the command executed in the Child process

5 views
Skip to first unread message

Forest William

unread,
Jun 17, 2023, 10:17:31 AM6/17/23
to sysdig
char *cmd = "ifconfig";
pid_t pid = fork();  // create 
    if (pid == -1) {
        perror("fork error error error");
    } else if (pid == 0) {
        system(cmd);  }      // Sysdig cannot capture the complete event flow between the Child process and the executed command, especially the lack of clone events from the subprocess to the cmd ?  Has anyone else encountered this problem? Help me, thank you
Reply all
Reply to author
Forward
0 new messages