1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00
irssi/src/perl
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
..
common make irssi --with-perl build with separate object directory 2017-01-06 12:24:36 +01:00
irc make irssi --with-perl build with separate object directory 2017-01-06 12:24:36 +01:00
textui make irssi --with-perl build with separate object directory 2017-01-06 12:24:36 +01:00
ui make irssi --with-perl build with separate object directory 2017-01-06 12:24:36 +01:00
get-signals.pl Add TLS_REC. 2016-10-22 20:37:33 +02:00
irssi-core.pl stop cap_sasl 2015-11-24 00:30:12 +01:00
Makefile_silent.pm remove curses terminal and ncurses macro 2016-08-04 10:02:28 +02:00
Makefile.am remove curses terminal and ncurses macro 2016-08-04 10:02:28 +02:00
module-fe.h Module loading updates - /LOAD shows now also the statically loaded modules. 2001-08-14 00:41:59 +00:00
module-formats.c Oops. Update address correctly now. 2007-05-08 18:41:10 +00:00
module-formats.h --enable-perl* -> --with-perl*. Added a new libfe_perl which handles /SCRIPT 2001-07-29 09:17:53 +00:00
module.h forward ABI to perl modules 2016-01-07 09:26:02 +01:00
perl-common.c Rename SSL to TLS. 2016-10-22 20:36:50 +02:00
perl-common.h Remove support for perl 5.004 and older. 2008-02-05 01:01:06 +00:00
perl-core.c Don't emit the script destroyed signal before script is actually destroyed 2017-02-28 23:48:56 -05:00
perl-core.h Add a '-autorun' switch to /script reset 2016-09-11 16:59:21 +02:00
perl-fe.c Add a '-autorun' switch to /script reset 2016-09-11 16:59:21 +02:00
perl-signals.c Allow Irssi::signal_remove to work properly with coderefs 2016-07-12 12:42:15 +02:00
perl-signals.h source cleanup: remove trailing whitespaces 2014-09-11 19:10:33 +02:00
perl-sources.c Merge pull request #52 from dgl/stack-cleanup 2014-06-29 14:27:12 +02:00
perl-sources.h Irssi::timeout_add(), timeout_add_once() and input_add() were buggy. 2002-11-10 10:14:18 +00:00