From: Wilfried Goesgens Date: Thu, 10 Mar 2011 19:36:35 +0000 (+0100) Subject: IO fixups X-Git-Tag: v8.11~832 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=237a380edc8b97ec299c7d0429be29bb0cd5865f IO fixups - prepend accept() by select() - open a pipe to ourselves, so we can wake us up on all selects() waiting for input -> clean shutdown. --- diff --git a/webcit/sysdep.c b/webcit/sysdep.c index 101c3647a..442c83283 100644 --- a/webcit/sysdep.c +++ b/webcit/sysdep.c @@ -100,6 +100,8 @@ char *static_dirs[]={ /* needs same sort order as the web mapping */ (char*)static_icon_dir /* our icons... */ }; +int ExitPipe[2]; + void InitialiseSemaphores(void) { int i; @@ -108,6 +110,15 @@ void InitialiseSemaphores(void) for (i=0; i