#include #include int main(int argc, char** argv) { (void) argc; (void) argv; printf("Testing fork()...\n"); pid_t pid = fork(); if (!pid) { printf("child, pid=%d\n", getpid()); } else { printf("parent, child pid=%d\n", pid); } return 0; }