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>2015-02-08 17:38:00 +0000
commitc70cb024e29a6327b8ff6a4a4484b488e5afd7f6 (patch)
tree381229fc34703ce13d542d9a0c4a017bda2ca470 /os/utils.c
parent7d782da383afdb146205e1d0f5211441337ddd7c (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: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-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 75769f17c..90fa5a440 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -996,6 +996,7 @@ ProcessCommandLine(int argc, char *argv[])
}
else if (strcmp(argv[i], "-schedInterval") == 0) {
if (++i < argc) {
+ SmartScheduleDisable = FALSE;
SmartScheduleInterval = atoi(argv[i]);
SmartScheduleSlice = SmartScheduleInterval;
}
@@ -1004,6 +1005,7 @@ ProcessCommandLine(int argc, char *argv[])
}
else if (strcmp(argv[i], "-schedMax") == 0) {
if (++i < argc) {
+ SmartScheduleDisable = FALSE;
SmartScheduleMaxSlice = atoi(argv[i]);
}
else