diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-20 01:47:29 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-20 01:47:29 +0000 |
commit | e0841d15a2958eb7f5df7ad52ff940f7435f0aa2 (patch) | |
tree | 40e3a5e48e0807575b3b6dadf20a2d4efb90e660 /src/fe-text/irssi.c | |
parent | bb3592f5c7a2c75effc38bc136bab2a9d175299f (diff) | |
download | irssi-e0841d15a2958eb7f5df7ad52ff940f7435f0aa2.zip |
/UPGRADE now saves the session, disconnects the servers so that the socket
isn't closed but irssi thinks its disconnected, then it quits irssi, and as
the last command executes the new irssi. This way we get clean
deinitialization so irssi can close log files, destroy scripts, etc.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2114 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r-- | src/fe-text/irssi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 39ae0ec6..6a7ae2c0 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -26,6 +26,7 @@ #include "levels.h" #include "core.h" #include "settings.h" +#include "session.h" #include "printtext.h" #include "fe-common-core.h" @@ -140,7 +141,6 @@ static void textui_init(void) theme_register(gui_text_formats); signal_add("gui exit", (SIGNAL_FUNC) sig_exit); - signal_add("session clean", (SIGNAL_FUNC) term_deinit); } static void textui_finish_init(void) @@ -197,7 +197,6 @@ static void textui_deinit(void) dirty_check(); /* one last time to print any quit messages */ signal_remove("gui exit", (SIGNAL_FUNC) sig_exit); - signal_remove("session clean", (SIGNAL_FUNC) term_deinit); lastlog_deinit(); statusbar_deinit(); @@ -324,5 +323,6 @@ int main(int argc, char **argv) g_main_destroy(main_loop); textui_deinit(); + session_upgrade(); /* if we /UPGRADEd, start the new process */ return 0; } |