/* version 0 ; sys name: parent0.c a simple parent child will be created; exact copy of parent; shares hardly anything with parent; child and parent share files though but no data/vars etc; child has its own address space. In this version we don't change the core image for the child process. */ /* #include #define NULL 0 */ #include #include #include int main (void) { int pidValue = fork(); printf("the value which is returned by fork: %d \n", pidValue); printf("pid: %d \n", getpid()); printf("Process[%d]: Parent or Child! terminating ... \n", getpid()); exit(0); }