Fork usage is simple. You just run fork() and see the result. If you get >0, you're in the parent process, if you get 0 you're in child process and if you get something less than 0 - there was an error.
The thing is what you want to do in parent/child process.
|