-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Marcin,
On 25.05.2015 14:43, Marcin Gryszkalis wrote:
This should fix it: diff --git a/src/protocol.c b/src/protocol.c
fix confirmed
This is good news. Thank you for testing it.
5.18b2 won't build on freebsd because of different scheduler flags
cron.c:82:46: error: use of undeclared identifier 'SCHED_BATCH' if(pthread_setschedparam(pthread_self(), SCHED_BATCH, ¶m))
Indeed. SCHED_BATCH seems to be only supported on modern versions of Linux, which is not very portable.
On AIX it is possible to set per-thread nice value with thread_setschedparam(): https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.basetr...
On Linux the same goal can be achieved with setpriority(2): http://manpages.ubuntu.com/manpages/trusty/man2/setpriority.2.html (BUGS section).
I couldn't find a solution for FreeBSD...
Mike