Re: how to make linux program to demon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/22/05, ppunnam@xxxxxxxxxxx <ppunnam@xxxxxxxxxxx> wrote:

  Hi guys..

      I got a linux user level  program, i want to make it as demon. i
googled it but i didnt found any good tutorial ...
if any one has some links or info please forward me.

thanx..

-prady


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


Hello ppunnam,
        I use the following steps to make a process a deamon process,
              
         step 1.      
                    use a fork ( ) to fork a child process

         step 2.
                  Exit the parent process.
        
         step 3.
                  In child use setpgrp ( ) , this will disassociate the process from terminals

         the deamon process is ready you can compile and run the program with out using " & ".

These steps has worked for me.
 
good luck      



--
Regards,
         Badari.
    

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux