Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <unistd.h>
- int main(int argc, char** argv){
- fork();
- /* The function getpid() returns the PID of the current process */
- fprintf(stdout, "I'm a process, my PID is: %d", getpid());
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment