Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon manager ignores 'stop' action while it's busy respawning #13

Closed
mgedmin opened this issue Apr 15, 2015 · 0 comments
Closed

Daemon manager ignores 'stop' action while it's busy respawning #13

mgedmin opened this issue Apr 15, 2015 · 0 comments

Comments

@mgedmin
Copy link
Member

mgedmin commented Apr 15, 2015

Try this:

$ cat conf
<runner>
program sleep 100
</runner>
$ zdaemon -C conf start
$ zdaemon -C conf kill; zdaemon -C stop; zdaemon -C status

I once got

kill(2289, 12)
signal SIGTERM sent to process 2289
daemon process not running
daemon manager running; daemon process not running

and then a second or so later

$ zdaemon -C conf status
program running; pid=2370
mgedmin added a commit that referenced this issue Apr 15, 2015
Conveniently this bug was discovered while writing a test for the
previous feature (#10), so we save one test ;)
@mgedmin mgedmin closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant