summaryrefslogtreecommitdiff
path: root/os/utils.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-02-18 21:03:20 -0600
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-09-05 23:41:10 +0100
commitc3c3ad5b997d9c20d5736e586453d724afaa81f2 (patch)
tree57039aa46eb1c7f96a001cf17a49e50164118219 /os/utils.c
parent8fd4482a7651f1237ee73788f09d15bef1168c19 (diff)
Disable smart scheduler on Cygwin
The smart scheduler firing SIGALRM every 20ms causes serious problems on Cygwin. Symptoms include sporadic 'accept() failed' messages in the log and deadlocks in multiwindow mode. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Diffstat (limited to 'os/utils.c')
-rw-r--r--os/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/utils.c b/os/utils.c
index 04bcbc61f..85ece6647 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -879,6 +879,7 @@ ProcessCommandLine(int argc, char *argv[])
}
else if (strcmp(argv[i], "-schedInterval") == 0) {
if (++i < argc) {
+ SmartScheduleDisable = FALSE;
SmartScheduleInterval = atoi(argv[i]);
SmartScheduleSlice = SmartScheduleInterval;
}
@@ -887,6 +888,7 @@ ProcessCommandLine(int argc, char *argv[])
}
else if (strcmp(argv[i], "-schedMax") == 0) {
if (++i < argc) {
+ SmartScheduleDisable = FALSE;
SmartScheduleMaxSlice = atoi(argv[i]);
}
else