2994. [port] NetBSD: use pthreads by default on NetBSD >= 5.0, and

do not use threads on earlier versions.  Also kill
                        the unproven-pthreads, mit-pthreads, and ptl2 support.
This commit is contained in:
Mark Andrews
2010-12-21 04:20:23 +00:00
parent e1f024416a
commit c2170a4bd0
3 changed files with 9 additions and 66 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: t_api.c,v 1.67 2010/06/08 23:50:24 tbox Exp $ */
/* $Id: t_api.c,v 1.68 2010/12/21 04:20:23 marka Exp $ */
/*! \file */
@@ -243,15 +243,6 @@ main(int argc, char **argv) {
sa.sa_flags = 0;
sigfillset(&sa.sa_mask);
#ifdef SIGCHLD
/*
* This is mostly here for NetBSD's pthread implementation, until
* people catch up to the latest unproven-pthread package.
*/
sa.sa_handler = SIG_DFL;
(void)sigaction(SIGCHLD, &sa, NULL);
#endif
sa.sa_handler = t_sighandler;
(void)sigaction(SIGINT, &sa, NULL);
(void)sigaction(SIGALRM, &sa, NULL);