summaryrefslogtreecommitdiffstats
path: root/monitor.h
AgeCommit message (Collapse)Author
2019-09-09Merge branch 'stable'Kevin McCarthy
2019-09-01add fallback for inotify_init1Gero Treuner
2019-06-21Remove NULL and 0 INITVAL declarataions.Kevin McCarthy
The C standard says static storage duration variables will be initialized to NULL/0.
2018-06-25Work around open mailbox monitor code check issue.Kevin McCarthy
The monitor code is too fast, and can result in all the changes for a single directory stat update being missed. Work around this issue by not recording stat time updates when the check_mailbox() is triggered by the monitor. This will cause the next subsequent check to take another look.
2018-06-10Move mutt_getch() timeout value into curs_lib.cKevin McCarthy
Change monitor.c to reference the curs_lib value, instead of vice-versa. We need to store the value for both monitor.c's poll and for mutt_monitor_ch() to perform an initial non-blocking check of ncurses' getch() buffer.
2018-06-08Give a prototype for mutt_monitor_pollVincent Lefevre
2018-06-05Quick fix for ncurses buffering issue with inotify polling.Kevin McCarthy
Ncurses does its own buffering for some character sequences, notable Esc-prefixed input. Add a non-blocking check for getch() before performing the mutt_monitor_poll() call. This is a quick fix, which I'll clean up more later.
2018-06-03Add new timeout functions to work with inotify monitors.Kevin McCarthy
The ncurses timeout() function doesn't affect the new poll inside mutt_monitor_poll(). This meant that $imap_keepalive and $timeout were not being respected when the monitor was used. Create mutt_getch_timeout(), which delegates to timeout() and sets a timeout value mutt_monitor_poll() uses too.
2018-06-03add feature file monitoring with Linux inotifyGT