bsvs/2026-08-25/processes.c (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> int main() { pid_t pid = fork(); printf("%i\n", pid); int status = waitpid(pid, 0, WCONTINUED); printf("%i\n", status); exit(0); }