6.2-Release and Clamd 0.90 with libpthread.so
Martin Blapp
mb at imp.ch
Tue Feb 20 22:39:25 UTC 2007
Hi,
> If running in foreground works regardless of kern.threads.virtual_cpu
> (there will still be some inefficiencies here because of the
> scheduler and KSE overhead/contention), then it is probably due
> to the application doing a fork() from a threaded application
> without doing an exec(). This is prohibited by POSIX and
> libpthread makes no attempt to allow it.
Yes it works regardless of kern.threads.virtual_cpu.
Yes, fork() is called without exec(). So what's the proper way ? Start
clamd in foreground mode with
daemon /usr/local/sbin/clamd
And redirect stderr ?
Or can this be solved differently ?
Martin
More information about the freebsd-threads
mailing list