catch exit status of daemon
Nizam Haider
nizamhaider786 at gmail.com
Tue Jan 6 14:27:12 EST 2015
Anuz Pratap Singh Tomar <chambilkethakur <at> gmail.com> writes:
>
>
>
> On Tue, Jan 6, 2015 at 3:22 PM, Yash Jain <yash2learn <at> gmail.com>
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.
>
>
> waitpid()
>
> signal()
WIFEXITED
WEXITSTATUS
>
>
>
> Thanks in advance
>
> Regards,
> Yash.
>
> _______________________________________________
> Kernelnewbies mailing listKernelnewbies <at>
kernelnewbies.orghttp://lists.kernelnewbies.org/mailman/listinfo/kernelnewbi
es
>
>
> -- Thank you Warm RegardsAnuz
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies <at> kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
More information about the Kernelnewbies
mailing list