Use the system call daemon() ( int daemon(int nochdir, int noclose) ) in the process which is to be daemonized.
Check 'man daemon'
Regards
Suneesh
Ram prakash wrote:
Hi Linux pals! can anyone tell me how to create daemon process! rgds, ramprakash.
*Yahoo! India Matrimony* <http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/>*:* Find your partner online <http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/community.php>.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/