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