Re: catch exit status of daemon

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

 



Yash,
There are two ways to do this either use the signals API or IPC(inter-process communication)
libraries. I don't known the functions off the top of my head but this can get you started.
Nick

On 2015-01-06 10:22 AM, Yash Jain wrote:
> Hello All,
> I have one dumb question,
> I wanted to write a process which monitors the exit status of the daemon,
> 
> The Main process would fork a service, which would internally fork a child
> and , exit from the process. If main process wants to query the status of
> the daemon, how it can be achived.
> 
> For ex :
> Process A would call a syslog service, which would internally fork a child,
> daemon it and exit, so if process A wants to wait for the syslog process,
> is it possible.
> 
> Thanks in advance
> 
> Regards,
> Yash.
> 
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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