projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the threading stuff in the evtloop module.
[apps/madmutt.git]
/
main.c
diff --git
a/main.c
b/main.c
index
af2141e
..
cc432d9
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-18,7
+18,6
@@
#include <lib-lib/lib-lib.h>
#include <sys/utsname.h>
#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>
#include <lib-lua/lib-lua.h>
#include <lib-sys/mutt_signal.h>
@@
-190,7
+189,6
@@
int main (int argc, char **argv)
int version = 0;
int i;
int explicit_folder = 0;
int version = 0;
int i;
int explicit_folder = 0;
- pthread_t pt;
/* initialize random number for tmp file creation */
srand48((unsigned int) time (NULL));
/* initialize random number for tmp file creation */
srand48((unsigned int) time (NULL));
@@
-309,7
+307,6
@@
int main (int argc, char **argv)
el_initialize();
mutt_init (flags & M_NOSYSRC, commands);
string_list_wipe(&commands);
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();
if (!option(OPTNOCURSES)) {
ui_layout_init();
@@
-504,8
+501,6
@@
int main (int argc, char **argv)
mutt_endwin (Errorbuf);
}
mutt_endwin (Errorbuf);
}
- pthread_cancel(pt);
- pthread_join(pt, NULL);
luaM_shutdown();
mutt_sasl_shutdown();
el_shutdown();
luaM_shutdown();
mutt_sasl_shutdown();
el_shutdown();