소스 검색

Remove default arg from signal methods

Mike Naberezny 10 년 전
부모
커밋
8a833845eb
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 8
      supervisor/rpcinterface.py

+ 6 - 8
supervisor/rpcinterface.py

@@ -466,12 +466,11 @@ class SupervisorNamespaceRPCInterface:
         killall.rpcinterface = self
         killall.rpcinterface = self
         return killall # deferred
         return killall # deferred
 
 
-
-    def signalProcess(self, name, signal='HUP'):
+    def signalProcess(self, name, signal):
         """ Send an arbitrary UNIX signal to the process named by name
         """ Send an arbitrary UNIX signal to the process named by name
 
 
         @param string name The name of the process to signal (or 'group:name')
         @param string name The name of the process to signal (or 'group:name')
-        @param int signal the integer UNIX signal to send. SIGHUP by default.
+        @param int signal the integer UNIX signal to send.
         @return boolean result
         @return boolean result
         """
         """
 
 
@@ -498,12 +497,11 @@ class SupervisorNamespaceRPCInterface:
 
 
         return True
         return True
 
 
-
-    def signalProcessGroup(self, name, signal='HUP'):
+    def signalProcessGroup(self, name, signal):
         """ Send a signal to all processes in the group named 'name'
         """ Send a signal to all processes in the group named 'name'
 
 
         @param string name  The group name
         @param string name  The group name
-        @param int signal   The signal to be sent. SIGHUP by default
+        @param int signal   The signal to be sent.
         @return array result
         @return array result
         """
         """
 
 
@@ -524,10 +522,10 @@ class SupervisorNamespaceRPCInterface:
 
 
         return result
         return result
 
 
-    def signalAllProcesses(self, signal='SIGHUP'):
+    def signalAllProcesses(self, signal):
         """ Send a signal to all processes in the process list
         """ Send a signal to all processes in the process list
 
 
-        @param int signal   The signal to be sent. SIGHUP by default
+        @param int signal   The signal to be sent.
         @return array result   An array of process status info structs
         @return array result   An array of process status info structs
         """
         """
         processes = self._getAllProcesses()
         processes = self._getAllProcesses()