Re: readiness notification from non-subprocess

From: Buck Evan <buck_at_yelp.com>
Date: Mon, 28 Sep 2015 15:49:33 -0700

Thanks Olivier.

It looks like anopa had the same point of pain I'm having and fixed it this
way.


On Mon, Sep 28, 2015 at 3:15 PM, Olivier Brunel <jjk_at_jjacky.com> wrote:

> On 09/28/15 23:26, Buck Evan wrote:
> > When my state machine sees that ./check has succeeded, what will it do?
> > I can't use the current notification-fd interface because I'm in an
> > unexpected bit of the process tree; this is external program sitting *on
> > top* of s6-supervise. It's the parent process.
> >
> > I can see that my named-pipe suggestion is flawed. I'm quite willing to
> > drop that.
> > Can we add a svc -<letter here> option that tickles the same bit of code?
> >
> > Or, can we make it simpler for me to do what s6-supervise does when it
> gets
> > the notification-fd signal?
> > It seems to do two things, send a U signal to ./envents/; I can do that.
> > It also updates the state in ./supervise/status; that I can't do, without
> > writing buggy code.
>
> Just to mention, anopa has a little tool that does just that, I believe:
> aa-setready -- See doc[1] and/or source[2]
>
> [1] https://github.com/jjk-jacky/anopa/blob/master/doc/aa-setready.pod
> [2] https://github.com/jjk-jacky/anopa/blob/master/src/utils/aa-setready.c
>
> In case that might be of any help,
> -j
>
>
Received on Mon Sep 28 2015 - 22:49:33 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC