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

os.Signal interface applicability unclear on Windows #38

Open
charles-dyfis-net opened this issue Jan 16, 2023 · 1 comment
Open

os.Signal interface applicability unclear on Windows #38

charles-dyfis-net opened this issue Jan 16, 2023 · 1 comment

Comments

@charles-dyfis-net
Copy link

The design of Ifrit makes a great deal of sense for the general case of folks on POSIX-y operating systems.

On Windows, however, os.Signal is not so much a thing -- os.Interrupt exists, but as far as I can tell it's specific to applications running in a terminal session.

Perhaps a future version of the API should have more flexibility in the channel used to trigger graceful shutdown?

@tedsuo
Copy link
Owner

tedsuo commented Mar 30, 2023

Yes it is very POSIX-y, but ifrit's use of signals is independent from the underlying signals used by the operating system. Conceptually, the purpose is to allow users the ability to differentiate between requests for a clean (blocking) shutdown and a faster non-blocking shutdown. You can tie these options into whatever control system you are using.

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

2 participants