Fix termination sequence on Windows wrt interval timers.
commit8e40bae418c231d7c8e69bba87badb9e2943583f
authorEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 09:29:14 +0000 (1 11:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 09:29:14 +0000 (1 11:29 +0200)
tree1f3d18dbe4caa7ab281cc9589b9cbead13df1712
parent0beb285186cfb0beee5c9a7c5f55666b7dc90460
Fix termination sequence on Windows wrt interval timers.

 src/w32proc.c <disable_itimers>: New static flag.
 (init_timers): Initialize it to zero, after creating the critical
 sections used by the timer threads.
 (term_timers): Set to 1 before deleting the critical sections.
 (getitimer, setitimer): If disable_itimers is non-zero, return an
 error indication without doing anything.  Reported by Fabrice
 Popineau <fabrice.popineau@supelec.fr> as part of bug#12544.
src/ChangeLog
src/emacs.c
src/w32proc.c