Explorar o código

sendProcessSignal: No need to return a callback

Work is already done by process.signal()
Marc Abramowitz %!s(int64=10) %!d(string=hai) anos
pai
achega
873c8d98f9
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      supervisor/rpcinterface.py

+ 0 - 6
supervisor/rpcinterface.py

@@ -492,12 +492,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'