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

mgedmin opened this Issue Apr 15, 2015 · 0 comments


None yet
1 participant

mgedmin commented Apr 15, 2015

Try this:

$ cat conf
program sleep 100
$ 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

Don't ignore 'stop' if the program is respawning (#13)
Conveniently this bug was discovered while writing a test for the
previous feature (#10), so we save one test ;)

@mgedmin mgedmin closed this Apr 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment