1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

core: do not exit WeeChat in weechat_end() (let the caller do that)

This is needed for automated tests, to exit with return code of tests.
This commit is contained in:
Sébastien Helleu
2014-06-22 10:31:11 +02:00
parent 9935b336ed
commit de7e7585dd
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -486,7 +486,7 @@ weechat_shutdown (int return_code, int crash)
if (crash)
abort();
else
else if (return_code >= 0)
exit (return_code);
}
@@ -590,5 +590,5 @@ weechat_end (void (*gui_end_cb)(int clean_exit))
hdata_end (); /* end hdata */
secure_end (); /* end secured data */
string_end (); /* end string */
weechat_shutdown (EXIT_SUCCESS, 0); /* quit WeeChat (oh no, why?) */
weechat_shutdown (-1, 0); /* end other things */
}
-1
View File
@@ -41,6 +41,5 @@ main (int argc, char *argv[])
gui_main_loop ();
weechat_end (&gui_main_end);
/* make C compiler happy (never executed) */
return EXIT_SUCCESS;
}