1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00
irssi/src
Stephen Oberholtzer 5c4e6304ce Don't emit the script destroyed signal before script is actually destroyed
The script unloading code originally worked like this:

1. Destroy package
2. Emit 'script destroyed' signal
3. Unhook script's signal handlers

If a script added a 'script destroyed' signal handler, unloading
that script would cause the 'script destroyed' signal to be sent to the
(already destroyed) package.  This would cause a script error, which would
trigger a script unload, which would start the whole process over again,
until we run out of heap or stack space and segfault.

This commit simply reorders the operations so that the 'script destroyed'
signal is sent *after* the script is fully destroyed.
2017-02-28 23:48:56 -05:00
..
core Merge pull request #627 from LemonBoy/ssl-expiry 2017-02-15 15:49:00 +01:00
fe-common Merge pull request #590 from LemonBoy/hi-minor 2017-01-31 14:18:48 +01:00
fe-fuzz Fix fe-fuzz nits 2017-01-12 18:11:09 -05:00
fe-none s/INCLUDES/AM_CPPFLAGS/g 2014-06-27 09:06:21 -04:00
fe-text Merge pull request #626 from ailin-nemui/textbuffer_monospace 2017-01-31 14:17:44 +01:00
irc notify-ison: Don't send ison before the connection is done 2017-02-11 00:07:03 -03:00
lib-config Enforce the is_node_list contract in lib-config setters. 2016-11-29 23:08:45 +01:00
perl Don't emit the script destroyed signal before script is actually destroyed 2017-02-28 23:48:56 -05:00
common.h provide net_start_ssl api 2017-02-05 23:08:42 +01:00
Makefile.am Add frontend for fuzzing 2017-01-07 20:01:07 -05:00