Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ ls -la
- total 31
- drwxr-xr-x 2 root root 72 Aug 13 13:27 ./
- drwxr-xr-x 278 root root 27232 Aug 13 13:27 ../
- -rw-r--r-- 1 root root 316 Aug 13 12:58 fork.c
- bash-4.2$ tcc -run fork.c
- Hello fork()
- I'm the dad
- I'm the child process
- bash-4.2$ ls -la
- total 31
- drwxr-xr-x 2 root root 72 Aug 13 13:27 ./
- drwxr-xr-x 278 root root 27232 Aug 13 13:27 ../
- -rw-r--r-- 1 root root 316 Aug 13 12:58 fork.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement