[1000] in BarnOwl Developers
[D-O-H] r987 - trunk/owl
daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:12:00 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Tue, 18 Mar 2008 23:57:24 -0400 (EDT)
Author: asedeno
Date: 2008-03-18 23:57:24 -0400 (Tue, 18 Mar 2008)
New Revision: 987
Modified:
trunk/owl/owl.c
Log:
Fix a race condition in which zephyrs received during init
are not noticed until the next zephyr after entering the mainloop.
Modified: trunk/owl/owl.c
===================================================================
--- trunk/owl/owl.c 2008-03-13 19:56:20 UTC (rev 986)
+++ trunk/owl/owl.c 2008-03-19 03:57:24 UTC (rev 987)
@@ -426,6 +426,11 @@
nexttimediff=10;
nexttime=time(NULL);
+#ifdef HAVE_LIBZEPHYR
+ /* Check for any zephyrs that have come in while we've done init. */
+ owl_zephyr_process_events();
+#endif
+
owl_function_debugmsg("startup: entering main loop");
/* main loop */
while (1) {