[ntpsec commit] Remove shim for faulty pthreads on BSDI 3.0, which was EOL since before 2003.

Eric S. Raymond esr at ntpsec.org
Tue Sep 29 13:48:30 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    df696df7708f0ff882bfa5b6eea7c50a4b99c5a2
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=df696df7708f0ff882bfa5b6eea7c50a4b99c5a2

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Tue Sep 29 09:44:10 2015 -0400

Remove shim for faulty pthreads on BSDI 3.0, which was EOL since before 2003.

---

 libntp/work_thread.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/libntp/work_thread.c b/libntp/work_thread.c
index a0c4698..7a36d72 100644
--- a/libntp/work_thread.c
+++ b/libntp/work_thread.c
@@ -400,9 +400,6 @@ start_blocking_thread_internal(
 }
 #else	/* pthreads start_blocking_thread_internal() follows */
 {
-# ifdef NEED_PTHREAD_INIT
-	static bool	pthread_init_called;
-# endif
 	pthread_attr_t	thr_attr;
 	int		rc;
 	int		pipe_ends[2];	/* read then write */
@@ -411,17 +408,6 @@ start_blocking_thread_internal(
 	size_t		stacksize;
 	sigset_t	saved_sig_mask;
 
-# ifdef NEED_PTHREAD_INIT
-	/*
-	 * from lib/isc/unix/app.c:
-	 * BSDI 3.1 seg faults in pthread_sigmask() if we don't do this.
-	 */
-	if (!pthread_init_called) {
-		pthread_init();
-		pthread_init_called = true;
-	}
-# endif
-
 	rc = pipe_socketpair(&pipe_ends[0], &is_pipe);
 	if (0 != rc) {
 		msyslog(LOG_ERR, "start_blocking_thread: pipe_socketpair() %m");



More information about the vc mailing list