How to fork off a process from a program in C. Simple netcat example.

This post will explain how to fork() off a daemon process from a program in C. This is good if you wish to run a process on a machine after the program has finished and you have been returned to the command prompt. The sample program below uses the int daemon(int nochdir, int noclose); function … Read more