Skip to content
Snippets Groups Projects
Commit 16eaf979 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

yay

parent 40bc4404
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def hang_until_sig(extra_signals=[]):
while True:
try:
me_lock.acquire()
#me_lock.acquire()
return
except InterruptedError:
pass
......@@ -19,15 +19,13 @@ class TestHUS(unittest.TestCase):
class Delayer(threading.Thread):
def run(self):
time.sleep(2)
for signame, handler in signal.call_args_list:
print(handler)
handler(signame, None)
for call in signal.call_args_list:
call.handler(call.signalnum, None)
from satella.posix import hang_until_sig
#Delayer().start()
Delayer().start()
hang_until_sig()
print(signal.call_args_list)
class TestPidlock(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment