# Detect whether we're on a Linux system that uses the (now outdated
# and unmaintained) linuxthreads threading library. There's an issue
def _kill_with_event(self, event, name):
+ tagname = "test_os_%s" % uuid.uuid1()
+ m = mmap.mmap(-1, 1, tagname)
# Run a script which has console control handling enabled.
proc = subprocess.Popen([sys.executable,
# Let the interpreter startup before we send signals. See #3137.
+ while count < max and proc.poll() is None:
+ self.fail("Subprocess didn't finish initialization")
# proc.send_signal(event) could also be done here.
# Allow time for the signal to be passed and the process to exit.