~jan-kneschke/mysql-proxy/threaded-signal-handling

Viewing all changes in revision 1262.

  • Committer: jan.kneschke at oracle
  • Date: 2012-06-12 09:49:06 UTC
  • Revision ID: jan.kneschke@oracle.com-20120612094906-i673fj2zldreyjc1
moved signal handling for SIGTERM, SIGINT and SIGHUP into its own thread

  - sigprocmask()'s behaviour in multi-threaded enviroments is undefined
  - pthread_sigmask() has to be used instead
  - signal init has to be done before the plugins are loaded and more
    threads are initialized inheriting the procmask of the parent

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: