This repository was archived by the owner on Dec 16, 2024. It is now read-only.
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Interrupted system call when calling print() to stderr. #173
Closed
Description
This test program crashes with a high probability when I hit CTRL+C.
from __future__ import print_function
import sys
import traceback
import signal
import pyuv
def signal_cb(handle, signum):
loop.stop()
def timer_cb (timer):
try:
timer.start(timer_cb, 0.1, False)
for i in range(1000):
print(''.join('LALALALALALALALALALALALALALALALA' for i in range(10)), file=sys.stderr)
except:
traceback.print_exc()
sys.exit(1)
loop = pyuv.Loop()
clients = []
signal_h = pyuv.Signal(loop)
signal_h.start(signal_cb, signal.SIGINT)
timer = pyuv.Timer(loop)
timer.start(timer_cb, 0, False)
loop.run()
File "/home/ambro/test2.py", line 14, in timer_cb
print(''.join('LALALALALALALALALALALALALALALALA' for i in range(10)), file=sys.stderr)
IOError: [Errno 4] Interrupted system call
Unhandled exception in callback
Metadata
Metadata
Assignees
Labels
No labels