News for hackers. Stuff that matters.
Re:Poor child process management in Rust terminal apps leads... by duped on Wednesday July 30, 2025 @11:06PM (#44741973)
Yes, this is easy to test too:

    #include <stdio.h>
    #include <unistd.h>
    #include <sys/types.h>
    int main() {
        pid_t pid = fork();
        if (pid == 0) {
            sleep(1);
            printf("after parent died!\n");
            return 0;
        }
        return 0;
    }
You'll see the message printed out 1 second after the process ends.

There are no comments on this comment yet.