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 event loop to evtloop.c, and wake up sleeping jobs every 10 seconds.
[apps/madmutt.git]
/
main.c
diff --git
a/main.c
b/main.c
index
74f95be
..
af2141e
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-176,14
+176,6
@@
static void mutt_nocurses_error (const char *fmt, ...)
fputc('\n', stderr);
}
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 main (int argc, char **argv)
{
char folder[_POSIX_PATH_MAX] = "";
@@
-317,7
+309,7
@@
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, &e
vt
loop, NULL);
+ pthread_create(&pt, NULL, &e
l_
loop, NULL);
if (!option(OPTNOCURSES)) {
ui_layout_init();
if (!option(OPTNOCURSES)) {
ui_layout_init();