소스 검색

sendProcessSignal: No need to return a callback

Work is already done by process.signal()
Marc Abramowitz 11 년 전
부모
커밋
d27dfea244
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      supervisor/rpcinterface.py

+ 0 - 6
supervisor/rpcinterface.py

@@ -491,12 +491,6 @@ class SupervisorNamespaceRPCInterface:
         if not msg is None:
             raise RPCError(Faults.FAILED, msg)
 
-        cb = lambda: True
-        cb.delay = 0
-        cb.rpcinterface = self
-
-        return cb
-
 
     def sendGroupSignal(self, name, signal='HUP'):
         """ Send a signal to all processes in the group named 'name'