openbsd-ports/databases/strigi/patches/patch-src_daemon_strigithread_cpp
espie b423669a57 strigi search engine, dependency of kde4.
compiles, probably doesn't run right yet.
2007-06-10 21:46:27 +00:00

19 lines
763 B
Plaintext

$OpenBSD: patch-src_daemon_strigithread_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
--- src/daemon/strigithread.cpp.orig Tue Mar 13 15:19:45 2007
+++ src/daemon/strigithread.cpp Thu Jun 7 20:11:52 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