Re: Init checking for processes that are configured to "respawn"

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




On 2009-07-07, at 6:17 AM, "Dirk H. Schulz"  
<dirk.schulz@xxxxxxxxxxxxx> wrote:

> Hi folks,
>
> I have a sophisticated question for which I can't find any hints on  
> the
> web:
>
> If you configure init (via /etc/inittab) to respawn processes (like  
> the
> getty processes) when they exit - how often does init check for the
> existence of such a process? Does it check actively at all or does it
> rely on some kind of inter process communication?

I'd imagine it uses wait (man 2 wait) and/or waits for a SIGCHLD to be  
sent. The latter sent to it whenever a child process exits.

In either case, the spawned process does not need to be aware of how  
knit works under the hood.

HTH
Michael
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux