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

Handle signals #22

Open
paneq opened this issue Jul 17, 2012 · 5 comments
Open

Handle signals #22

paneq opened this issue Jul 17, 2012 · 5 comments
Labels

Comments

@paneq
Copy link
Collaborator

paneq commented Jul 17, 2012

For:

  • graceful stop
  • force stop
  • adding a thread
  • removing a thread
  • reloading configuration (if possible...)

Signal handling should be defined in our m2r binary instead of in the handler itself (as it is currently in rack-adapter branch).

@mostlyobvious
Copy link
Collaborator

What do you mean by m2r binary?

@paneq
Copy link
Collaborator Author

paneq commented Jul 18, 2012

bin/m2r in the future.

@paneq
Copy link
Collaborator Author

paneq commented Jul 25, 2012

I think that signal handling should be easy to turn off in case someone wants to use our library in another libary or tests or something and handle them suitable to his/her needs.

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/4039

I am not sure which part of this information is still true but we should be aware of the fact that #trap overwrites previous trap calls for particular signals. And that it is called in main thread (probably). That might be important when we become multithreading software.

@paneq
Copy link
Collaborator Author

paneq commented Nov 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants