33 |
#include "weelist.h" |
#include "weelist.h" |
34 |
#include "weeconfig.h" |
#include "weeconfig.h" |
35 |
#include "session.h" |
#include "session.h" |
36 |
|
#include "fifo.h" |
37 |
#include "../irc/irc.h" |
#include "../irc/irc.h" |
38 |
#include "../gui/gui.h" |
#include "../gui/gui.h" |
39 |
#include "../plugins/plugins.h" |
#include "../plugins/plugins.h" |
2866 |
#endif |
#endif |
2867 |
(void) config_write (NULL); |
(void) config_write (NULL); |
2868 |
gui_end (); |
gui_end (); |
2869 |
|
fifo_remove (); |
2870 |
|
if (weechat_log_file) |
2871 |
|
fclose (weechat_log_file); |
2872 |
|
#ifdef HAVE_GNUTLS |
2873 |
|
gnutls_certificate_free_credentials (gnutls_xcred); |
2874 |
|
gnutls_global_deinit(); |
2875 |
|
#endif |
2876 |
|
|
2877 |
execvp (exec_args[0], exec_args); |
execvp (exec_args[0], exec_args); |
2878 |
|
|
2884 |
fprintf (stderr, _("%s exec failed (program: \"%s\"), exiting WeeChat\n"), |
fprintf (stderr, _("%s exec failed (program: \"%s\"), exiting WeeChat\n"), |
2885 |
WEECHAT_ERROR, |
WEECHAT_ERROR, |
2886 |
exec_args[0]); |
exec_args[0]); |
2887 |
|
|
2888 |
free (exec_args[0]); |
free (exec_args[0]); |
2889 |
free (exec_args[3]); |
free (exec_args[3]); |
2890 |
free (filename); |
free (filename); |
2891 |
|
|
2892 |
weechat_shutdown (EXIT_FAILURE, 0); |
exit (EXIT_FAILURE); |
2893 |
|
|
2894 |
/* never executed */ |
/* never executed */ |
2895 |
return -1; |
return -1; |