Performance issue

Daniel Eischen deischen at
Mon May 9 23:16:00 PDT 2005

On Tue, 10 May 2005, Suleiman Souhlal wrote:

> Hi,
> On May 10, 2005, at 1:24 AM, Daniel Eischen wrote:
> > No, libc_r wraps execve() and a lot of other syscalls that libpthread
> > or libthr don't need to.  Take a look at libc_r/uthread/
> > uthread_execve.c
> > and you will see it sets the signal mask before exec()ing.
> Couldn't we do the same thing in libpthread, in the not-threaded case?
> I apologize if I'm asking stupid questions.. :)

No ;-)  We don't want to wrap functions unecessarily.  Applications
not linked to a thread library still have to use the actual syscall,
so there's no point in wrapping extra functions just to make
sigprocmask() faster when linked with libpthread.


More information about the freebsd-stable mailing list