#include <lib-lib/lib-lib.h>
#include <sys/utsname.h>
-#include <pthread.h>
#include <lib-lua/lib-lua.h>
#include <lib-sys/mutt_signal.h>
int version = 0;
int i;
int explicit_folder = 0;
- pthread_t pt;
/* initialize random number for tmp file creation */
srand48((unsigned int) time (NULL));
el_initialize();
mutt_init (flags & M_NOSYSRC, commands);
string_list_wipe(&commands);
- pthread_create(&pt, NULL, &el_loop, NULL);
if (!option(OPTNOCURSES)) {
ui_layout_init();
mutt_endwin (Errorbuf);
}
- pthread_cancel(pt);
- pthread_join(pt, NULL);
luaM_shutdown();
mutt_sasl_shutdown();
el_shutdown();