[Python-checkins] drop unused configure check for pthread_atfork (#4046)

Benjamin Peterson webhook-mailer at python.org
Thu Oct 19 02:39:04 EDT 2017


https://github.com/python/cpython/commit/24c4d046c492d598d32982194c84db236ccf9793
commit: 24c4d046c492d598d32982194c84db236ccf9793
branch: master
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2017-10-18T23:39:01-07:00
summary:

drop unused configure check for pthread_atfork (#4046)

files:
M configure
M configure.ac
M pyconfig.h.in

diff --git a/configure b/configure
index 324c0347060..aa605d2f694 100755
--- a/configure
+++ b/configure
@@ -10541,17 +10541,6 @@ $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
 fi
 done
 
-      for ac_func in pthread_atfork
-do :
-  ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
-if test "x$ac_cv_func_pthread_atfork" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_PTHREAD_ATFORK 1
-_ACEOF
-
-fi
-done
-
       for ac_func in pthread_getcpuclockid
 do :
   ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
diff --git a/configure.ac b/configure.ac
index bf2b7c07534..a5b9967a5e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3043,7 +3043,6 @@ if test "$posix_threads" = "yes"; then
             [Define if pthread_sigmask() does not work on your system.])
             ;;
         esac])
-      AC_CHECK_FUNCS(pthread_atfork)
       AC_CHECK_FUNCS(pthread_getcpuclockid)
 fi
 
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 7f0c6b33a95..662c42e047c 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -688,9 +688,6 @@
 /* Define if your compiler supports function prototype */
 #undef HAVE_PROTOTYPES
 
-/* Define to 1 if you have the `pthread_atfork' function. */
-#undef HAVE_PTHREAD_ATFORK
-
 /* Defined for Solaris 2.6 bug in pthread header. */
 #undef HAVE_PTHREAD_DESTRUCTOR
 



More information about the Python-checkins mailing list