Re: Bad system call (core dumped)

From: Joseph Koshy <joseph.koshy_at_gmail.com>
Date: Sun, 19 Feb 2006 23:39:39 +0530
jk> Userland code should be checking for kernel support for
jk> features before attempting to use them.

dx> I don't think user code should check it before it can be
dx> used, actually, it is being used by thread libraries to
dx> implement named semaphore, it is requred by POSIX.

Well, support for posix semaphores is not turned on in
GENERIC, and so code that calls sem_init(3)
is rudely sent a SIGSYS today.

How about the attached patch to make our libraries better
behaved with kernels that lack the P1003_1B_SEMAPHORES
option?

--
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy

Received on Sun Feb 19 2006 - 17:09:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:52 UTC