Revision 2ed320c3 snf-pithos-backend/pithos/workers/monkey.py
b/snf-pithos-backend/pithos/workers/monkey.py | ||
---|---|---|
39 | 39 |
from ctypes import cast, POINTER |
40 | 40 |
import os |
41 | 41 |
from gevent import select |
42 |
import objpool |
|
43 | 42 |
|
44 | 43 |
|
45 | 44 |
def pithos_xseg_wait_signal_green(ctx, sd, timeout): |
46 | 45 |
posixfd_sd = cast(sd, POINTER(posixfd_signal_desc)) |
47 | 46 |
fd = posixfd_sd.contents.fd |
48 |
select.select([fd], [], [], timeout/1000000.0)
|
|
47 |
select.select([fd], [], [], timeout / 1000000.0)
|
|
49 | 48 |
while True: |
50 | 49 |
try: |
51 | 50 |
os.read(fd, 512) |
Also available in: Unified diff