2e0676359f
good surprise: a lot of patches have been integrated. Doesn't mean it works nice (in fact, half the tests fail), but it's getting better
19 lines
761 B
Plaintext
19 lines
761 B
Plaintext
$OpenBSD: patch-src_daemon_strigithread_cpp,v 1.2 2007/10/24 22:49:38 espie Exp $
|
|
--- src/daemon/strigithread.cpp.orig Thu Jul 5 11:03:40 2007
|
|
+++ src/daemon/strigithread.cpp Thu Oct 25 00:14:14 2007
|
|
@@ -99,12 +99,14 @@ threadstarter(void *d) {
|
|
+ ".threadstarter",
|
|
string("error setting priority: ") + strerror(errno));
|
|
}
|
|
+#ifndef __OpenBSD__
|
|
r = sched_setscheduler(0, SCHED_BATCH, ¶m);
|
|
if (r != 0) {
|
|
STRIGI_LOG_INFO (string("strigi.daemon.") + thread->name
|
|
+ ".threadstarter",
|
|
string("error setting to batch: ") + strerror(errno));
|
|
}
|
|
+#endif
|
|
#ifdef HAVE_LINUXIOPRIO
|
|
sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
|
|
#endif
|