comparison win32.py @ 128:42c8f5c152a5

Fixed EINTR fatally breaking poll/wait on Python 2.6- (for real this time)
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 16 May 2011 21:31:43 +0100
parents 10aa5a0e46bd
children 7923faf392fe
comparison
equal deleted inserted replaced
127:f5b8a0c0e3cb 128:42c8f5c152a5
45 __getnewargs__ = lambda self: tuple(self) 45 __getnewargs__ = lambda self: tuple(self)
46 kernel, user = (property(itemgetter(i)) for i in (0, 1)) 46 kernel, user = (property(itemgetter(i)) for i in (0, 1))
47 else: 47 else:
48 ProcessTimes = namedtuple('ProcessTimes', 'kernel user') 48 ProcessTimes = namedtuple('ProcessTimes', 'kernel user')
49 49
50 __all__ = 'call', 'kill', 'terminate', 'pause', 'clock' 50 __all__ = 'call', 'kill', 'terminate', 'wait', 'pause', 'clock'
51 51
52 52
53 from functools import wraps 53 from functools import wraps
54 pathext = [''] + os.environ['PATHEXT'].split(';') 54 pathext = [''] + os.environ['PATHEXT'].split(';')
55 @wraps(subprocess.Popen) 55 @wraps(subprocess.Popen)
544 try: 544 try:
545 process.terminate() 545 process.terminate()
546 except AttributeError: 546 except AttributeError:
547 TerminateProcess(process._handle, 1) 547 TerminateProcess(process._handle, 1)
548 terminate = kill 548 terminate = kill
549 wait = subprocess.Popen.wait