threading and linux (2.6.

Paul Wouters paul at xelerance.com
Wed Mar 17 19:00:44 UTC 2010


On Wed, 17 Mar 2010, Evan Hunt wrote:

> No, not at all.  Threaded works fine--I use it myself.  It's just a little
> touchy about file permissions.  On linux, I'm given to understand, a
> multi-threaded application can't relinquish its root privileges and then
> get them back later if it needs to open a file--which named currently
> assumes it will be able to do.  So if things aren't set up quite right,
> a threaded linux build of named can fail to open the pidfile or the session
> key file or something, and exit during startup.  Since that's likely to be
> a confusing sort of error for a naive user to cope with, the default build
> configuration dodges the problem, by building single-threaded.

So this affects dnssec-signzone too by turning it single threaded? So far,
I've always seen that use threads on Linux? Or is only named built wih
single-thread?

Paul



More information about the bind-users mailing list