diff --git a/vn.rpc/vnrpc.py b/vn.rpc/vnrpc.py index 83593562..811ca1ab 100644 --- a/vn.rpc/vnrpc.py +++ b/vn.rpc/vnrpc.py @@ -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): """