From 49fda3c4276d82c0d4609dc96fff826239e137b6 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Sun, 2 Nov 2008 18:27:16 +0000 Subject: Cygwin: has problems with constant SIGALRM from the smart scheduler, so disable it for cygwin Signed-off-by: Jon TURNEY --- os/utils.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/os/utils.c b/os/utils.c index 5a5a20374..48f8f5aeb 100644 --- a/os/utils.c +++ b/os/utils.c @@ -125,6 +125,11 @@ __stdcall unsigned long GetTickCount(void); #endif Bool noTestExtensions; + +#if defined(SIGVTALRM) && !defined(__CYGWIN__) +#define SMART_SCHEDULE_POSSIBLE +#endif + #ifdef COMPOSITE Bool noCompositeExtension = FALSE; #endif @@ -536,8 +541,10 @@ void UseMsg(void) ErrorF("+xinerama Enable XINERAMA extension\n"); ErrorF("-xinerama Disable XINERAMA extension\n"); #endif +#ifdef SMART_SCHEDULE_POSSIBLE ErrorF("-dumbSched Disable smart scheduling, enable old behavior\n"); ErrorF("-schedInterval int Set scheduler interval in msec\n"); +#endif ErrorF("+extension name Enable extension\n"); ErrorF("-extension name Disable extension\n"); #ifdef XDMCP @@ -1177,11 +1184,6 @@ XNFstrdup(const char *s) return sd; } - -#ifdef SIGVTALRM -#define SMART_SCHEDULE_POSSIBLE -#endif - #ifdef SMART_SCHEDULE_POSSIBLE #define SMART_SCHEDULE_SIGNAL SIGALRM #define SMART_SCHEDULE_TIMER ITIMER_REAL -- cgit v1.2.3