summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorneumann <neumann>2023-07-25 09:01:51 (GMT)
committerneumann <neumann>2023-07-25 09:01:51 (GMT)
commitd880550d56911af6fdba25b4863bc8e49d4df29f (patch)
treeb4e073dfd296c3ce4b8308fd2fc44de7727ede3f /unix/tclUnixFile.c
parentc1e69b2d6bffd5ec2ca5e44da5fc0754a51b0249 (diff)
downloadtcl-d880550d56911af6fdba25b4863bc8e49d4df29f.zip
tcl-d880550d56911af6fdba25b4863bc8e49d4df29f.tar.gz
tcl-d880550d56911af6fdba25b4863bc8e49d4df29f.tar.bz2
Prefer vfork() over posix_spawnp()
In essence, older versions of the posix_spawn(p) implementation under glibc have the problem not returning the correct error number in case the spawn call fails. This is e.g. a problem with CentOS 7, which uses GNU libc 2.17, which was released 2012-12-25. This has the consequence that on such systems, Tcl is not error message compliant to versions without posix_spawn. The versions of vfork() do not face this problem and show similar performance characteristics like with posix_spawnp() (spawn time in essence independent of memory footprint size). This change was tested with macOS 13.4, Ubuntu 20.04, CentOS 7.9 and OpenBSD 7.2.
Diffstat (limited to 'unix/tclUnixFile.c')
0 files changed, 0 insertions, 0 deletions