openbsd-ports/databases/strigi/patches/patch-src_daemon_strigithread_cpp
espie 2e0676359f update to 0.5.5, required to even try to build new kde snapshot
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
2007-10-24 22:49:38 +00:00

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, &param);
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