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:
+2
-2
@@ -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 */
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user