antirez/redis — Issue #213: Fix signal handler
Author: elfring
Created: 2011-11-25 19:23:52+00:00
State: open

The function "[redisLog](https://github.com/antirez/redis/blob/fa5af017d95dfd56b92ebe14064f995b19e4907f/src/redis.h#L910)" does not belong to the list of [async-signal-safe functions](https://www.securecoding.cert.org/confluence/display/seccode/SIG30-C.+Call+only+asynchronous-safe+functions+within+signal+handlers "Call only asynchronous-safe functions within signal handlers.").
See section "[2.4.3 Signal Actions](http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04_03 "Signal actions")" from the document "2.4 Signal Concepts".

I guess that a different program design will be needed for your function "[sigsegvHandler](https://github.com/antirez/redis/blob/fa5af017d95dfd56b92ebe14064f995b19e4907f/src/redis.c#L1963)".