summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authorneumann <neumann>2023-06-30 09:49:08 (GMT)
committerneumann <neumann>2023-06-30 09:49:08 (GMT)
commitc59dfa5e835d0a061af96d57e7e4b7a8c087fb36 (patch)
tree3be63312d03862d94785ebc2c3b9cf8c467a0572 /unix/tclUnixSock.c
parent3f68e9f64ffb09416fc76db2a30bb132f04e4569 (diff)
downloadtcl-c59dfa5e835d0a061af96d57e7e4b7a8c087fb36.zip
tcl-c59dfa5e835d0a061af96d57e7e4b7a8c087fb36.tar.gz
tcl-c59dfa5e835d0a061af96d57e7e4b7a8c087fb36.tar.bz2
Removed automated setting of USE_VFORK for macOS
The automatic setting of USE_VFORK in unix/configure.in is useless, confusing, and deprecated. Background: configure.in had a section, where it sets automatically USE_VFORK for macOS. if test "`uname -s`" = "Darwin" ; then ... AC_DEFINE(USE_VFORK, 1, [Should we use vfork() instead of fork()?]) ... However, Daniel Steffen has added the following section 17 years ago which effectively deactivated USE_VFORK for the x86_64 platform, when it is set, due to a bug report in RDAR (Apple's bug tracking system). 16 years ago a section was added to deactivate USE_VFORK for all platforms with llvm-gcc-4.2 or newer. /* *--------------------------------------------------------------------------- * At present, using vfork() instead of fork() causes execve() to fail * intermittently on Darwin x86_64. rdar://4685553 *--------------------------------------------------------------------------- */ /* Workaround problems with vfork() when building with llvm-gcc-4.2 */ (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 2 || \ (__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ > 0)))) This means, that the last 17 years, USE_VFORK was not doing anything on macOS. Furthermore, macOS 12 (Monterey, released 2021) deprecated vfork() officially. Therefore, it is safe to remove the setting of USE_VFORK from the default configuration for macOS. It is still possible to set USE_VFORK manually for certain platform if needed.
Diffstat (limited to 'unix/tclUnixSock.c')
0 files changed, 0 insertions, 0 deletions