Changeset 7233f68 for protocols

Timestamp:
2014-11-26T05:25:05Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
bc7a0d4
Parents:
6f6725c
Message:

Improved signal handling to avoid deadlocks

  • SIGSEGV: broadcast a message manually, avoiding the usual irc_write() functions which are unsafe due to malloc().
  • SIGTERM, SIGINT: Write to a pipe which gets handled in the main loop by bitlbee_shutdown(), saving configs and stuff.
  • SIGCHLD: set to ignore explicitly, which handles zombies correctly. This also drops some log messages with 'info' level, which in practice means they never got logged.
  • SIGPIPE: set to ignore (nobody cares)
  • SIGILL, SIGBUS, SIGFPE, SIGQUIT, SIGXCPU: Not handling anymore.
(No files)

Note: See TracChangeset for help on using the changeset viewer.