add debug print statement on SIGINT

This commit is contained in:
Willem Melching
2019-11-08 15:57:19 -08:00
parent 4a612698bb
commit dc9ad18afa

View File

@@ -84,6 +84,7 @@ cdef class SubSocket:
if msg == NULL:
# If a blocking read returns no message check errno if SIGINT was caught in the C++ code
if errno.errno == errno.EINTR:
print("SIGINT received, exiting")
sys.exit(1)
return None