/*-------------------------------------------------------------------*/ /* hello.c */ /* The getpid system call. */ /*-------------------------------------------------------------------*/ #include #include int main(int argc, char *argv[]) { printf("hello process (%ld)\n", (long)getpid()); return 0; } /* Sample executions: --> gcc -Wall -ansi -pedantic -o hello hello.c --> hello hello process (23564) --> hello hello process (23570) --> */