Lachim / redis

Automatically exported from code.google.com/p/redis
2 stars 0 forks source link

sigtermHandler not handled on FreeBSD #471

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?
2.2.1, FreeBSD 8.0

What is the problem you are experiencing?
Redis doesn't save rdb on disk when receives SIGTERM.

What steps will reproduce the problem?
kill -TERM redispid

Please provide any additional information below.
Move sigtermHandler out of #ifdef HAVE_BACKTRACE condition, because 
sigtermHandler doesn't use backtrace functionality.

Patch to master branch attached.

Original issue reported on code.google.com by Konstant...@gmail.com on 25 Feb 2011 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch. I've changed it a little to put all signal handling setup 
in a single function.

https://github.com/pietern/redis/tree/2.2-sigs
https://github.com/pietern/redis/tree/unstable-sigs

Original comment by pcnoordh...@gmail.com on 6 Mar 2011 at 4:52

GoogleCodeExporter commented 8 years ago
This is now available in both the 2.2 and unstable branches.

Original comment by pcnoordh...@gmail.com on 7 Mar 2011 at 11:34