[Python-checkins] cpython: Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies

jesus.cea python-checkins at python.org
Fri Sep 9 23:55:46 CEST 2011


http://hg.python.org/cpython/rev/e1644c8edc3e
changeset:   72326:e1644c8edc3e
user:        Jesus Cea <jcea at jcea.es>
date:        Fri Sep 09 23:55:42 2011 +0200
summary:
  Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies

files:
  Modules/posixmodule.c |  14 +++++++++++++-
  1 files changed, 13 insertions(+), 1 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11301,12 +11301,12 @@
 #endif
 
 #ifdef HAVE_SCHED_H
+    if (ins(d, "SCHED_OTHER", (long)SCHED_OTHER)) return -1;
     if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
     if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
 #ifdef SCHED_SPORADIC
     if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC) return -1;
 #endif
-    if (ins(d, "SCHED_OTHER", (long)SCHED_OTHER)) return -1;
 #ifdef SCHED_BATCH
     if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;
 #endif
@@ -11316,6 +11316,18 @@
 #ifdef SCHED_RESET_ON_FORK
     if (ins(d, "SCHED_RESET_ON_FORK", (long)SCHED_RESET_ON_FORK)) return -1;
 #endif
+#ifdef SCHED_SYS
+    if (ins(d, "SCHED_SYS", (long)SCHED_SYS)) return -1;
+#endif
+#ifdef SCHED_IA
+    if (ins(d, "SCHED_IA", (long)SCHED_IA)) return -1;
+#endif
+#ifdef SCHED_FSS
+    if (ins(d, "SCHED_FSS", (long)SCHED_FSS)) return -1;
+#endif
+#ifdef SCHED_FX
+    if (ins(d, "SCHED_FX", (long)SCHED_FSS)) return -1;
+#endif
 #endif
 
 #ifdef HAVE_ATTR_XATTR_H

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list