Przeglądaj źródła

sendProcessSignal: No need to return a callback

Work is already done by process.signal()
Marc Abramowitz 10 lat temu
rodzic
commit
873c8d98f9
1 zmienionych plików z 0 dodań i 6 usunięć
  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'