https://bugzilla.novell.com/show_bug.cgi?id=747134
https://bugzilla.novell.com/show_bug.cgi?id=747134#c3
--- Comment #3 from Yarny Yarny 2012-05-12 15:04:42 UTC ---
The problem is a blocking waitpid call. The following script also triggers the
bug:
################################################################
from threading import Thread
from operator import methodcaller
from sys import stdout
from os import fork,execvp,_exit,waitpid
def debug(s):
stdout.write(s)
stdout.flush()
def sleep():
pid = fork()
if not pid:
execvp("sleep",["sleep","0.01"])
_exit(255)
debug("<")
waitpid(pid,0)
debug(">")
while True:
debug("\n")
threads = list(Thread(target=sleep) for d in range(7))
map(methodcaller("start"),threads)
map(methodcaller("join"),threads)
################################################################
I generated this script by successively removing content from subprocess.py
until the "sleep()" function above remained. On my machine this script shows
lots of "<<<<<<<>>>>>>>", followed by a "<<<<<<<>>>>>>" (one ">" is missing).
Then it blocks and must be killed.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.