From 237a380edc8b97ec299c7d0429be29bb0cd5865f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 10 Mar 2011 20:36:35 +0100 Subject: [PATCH] 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. --- webcit/sysdep.c | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) 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