369938cc8e
"go for it" espie@
19 lines
815 B
Plaintext
19 lines
815 B
Plaintext
$OpenBSD: patch-src_daemon_strigithread_cpp,v 1.4 2010/06/18 15:09:41 sthen Exp $
|
|
--- src/daemon/strigithread.cpp.orig Wed Feb 3 19:03:07 2010
|
|
+++ src/daemon/strigithread.cpp Fri Jun 18 13:51:02 2010
|
|
@@ -119,12 +119,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 SYS_ioprio_set
|
|
if (syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, 0,
|
|
IOPRIO_CLASS_IDLE<<IOPRIO_CLASS_SHIFT ) < 0 ) {
|