]> granicus.if.org Git - python/commit
Fix by Donn Cave for BeOS (SF #403642):
authorGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 07:04:51 +0000 (07:04 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 2 Mar 2001 07:04:51 +0000 (07:04 +0000)
commitb7fe432a8863d876670f6753abb9f92f20bea399
tree2ff1cb144676e01f4bc972daa3e55e9897bb00d5
parent258ccd41264f3a77a767553240641a90e3ab5f0b
Fix by Donn Cave for BeOS (SF #403642):

  UNIX style fork/execve/wait are not fully compatible with thread
  support on BeOS.  For Python, that means neither fork() from import
  nor import from a fork work reliably. os._execvpe() does the latter,
  importing tempfile to set up a tantalizing target for hackers. This
  patch replaces both the tempfile name generation and the exec that
  uses it, in case we're on BeOS. Need this for
  setup:distutils:execvp(); symptoms are random crashes and internal
  BeOS error messages about th name, in case we're on BeOS. It's an
  issue because setup.py + distutils calls os.execvp(); symptoms are
  random crashes during setup.py, and internal BeOS error messages
  about thread IDs.
Lib/os.py