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

example signal-handling.go: Resource temporarily unavailable (in MacOS and Ubuntu) #88

Open
Gys opened this issue Nov 29, 2022 · 0 comments

Comments

@Gys
Copy link

Gys commented Nov 29, 2022

I assume I completely misunderstand how this example code should work. My apologizes in advance.

I built the signal-handling.go example without any modifications. Both for MacOS 12.6 and Ubuntu 22.04.1 LTS.

I execute: ./daemon and the app 'ghosts' into the background. I checked with 'Activity Monitor' (MacOS) and 'htop' (Ubuntu).
Next I execute ./daemon reload and I get Resource temporarily unavailable
Whatever command I try (reload, stop or quit), the only result is Resource temporarily unavailable.

Sending signals like SIGHUP and SIGINT using the OS itself does have the expected result.

So what is the purpose of adding the commands as app arguments?

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