You can't run a C file, as it's only a source code file.
You probably meant you've got a C program of your own you want to daemonize.
A daemon is just a program that "lurks in the dark" waiting for some stimuli to perform some action. Those stimuli could be signals, incoming connections, input from a pipe etc. In general, they're all stimuli which the daemon process needs to wait for performing a blocking wait, i.e. a read() syscall.
Without further detail as what this daemon needs to do I cannot say anything more.
Last edited by 414N; 08-23-2012 at 06:45 AM.
|