实现Ctrl-c中断recv
This commit is contained in:
parent
0cac529264
commit
49113c1668
@ -2,12 +2,17 @@
|
||||
|
||||
import threading
|
||||
import traceback
|
||||
import signal
|
||||
|
||||
import zmq
|
||||
from msgpack import packb, unpackb
|
||||
from json import dumps, loads
|
||||
|
||||
|
||||
# 实现Ctrl-c中断recv
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
|
||||
########################################################################
|
||||
class RpcObject(object):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user