We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
beanstalkd only handles SIGINT and does then a clean shutdown. The following patch adds this behavior for SIGTERM. Tested against version 1.3
Patch: --- beanstalkd.c.orig 2009-08-15 13:48:46.000000000 +0200 +++ beanstalkd.c 2009-08-15 13:49:11.000000000 +0200 @@ -120,6 +120,10 @@ sa.sa_handler = exit_cleanly; r = sigaction(SIGINT, &sa, 0); if (r == -1) twarn("sigaction(SIGINT)"), exit(111); + + sa.sa_handler = exit_cleanly; + r = sigaction(SIGTERM, &sa, 0); + if (r == -1) twarn("sigaction(SIGTERM)"), exit(111); }
/* This is a workaround for a mystifying workaround in libevent's epoll
The text was updated successfully, but these errors were encountered:
Handle SIGTERM.
Thanks to http://github.com/fnoeding for the patch.
Closed by b6685fe3f36972f49e15381ddbc2f06345b43dcb.
Sorry, something went wrong.
e568b53
Thanks to Florian Noeding (http://github.com/fnoeding) for the patch. Closes gh-17.
No branches or pull requests
beanstalkd only handles SIGINT and does then a clean shutdown. The following patch adds this behavior for SIGTERM. Tested against version 1.3
Patch:
--- beanstalkd.c.orig 2009-08-15 13:48:46.000000000 +0200
+++ beanstalkd.c 2009-08-15 13:49:11.000000000 +0200
@@ -120,6 +120,10 @@
sa.sa_handler = exit_cleanly;
r = sigaction(SIGINT, &sa, 0);
if (r == -1) twarn("sigaction(SIGINT)"), exit(111);
+
+ sa.sa_handler = exit_cleanly;
+ r = sigaction(SIGTERM, &sa, 0);
+ if (r == -1) twarn("sigaction(SIGTERM)"), exit(111);
}
The text was updated successfully, but these errors were encountered: