mirror of
https://github.com/commaai/msgq.git
synced 2026-06-13 00:14:32 +08:00
add debug print statement on SIGINT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user