#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>
fputc('\n', stderr);
}
-static void *evtloop(void *data)
-{
- for (;;) {
- el_dispatch(100);
- pthread_testcancel();
- }
-}
-
int main (int argc, char **argv)
{
char folder[_POSIX_PATH_MAX] = "";
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, &evtloop, NULL);
if (!option(OPTNOCURSES)) {
ui_layout_init();
mutt_endwin (Errorbuf);
}
- pthread_cancel(pt);
- pthread_join(pt, NULL);
luaM_shutdown();
mutt_sasl_shutdown();
el_shutdown();