@@ -895,11 +895,14 @@ def terminate(self):
895
895
raise self .Terminate ()
896
896
897
897
def multiprocessing_SIGCHLD (self , sig , stack ):
898
- self .vmsg ('Reaping zombies, active child count is %s' , len (multiprocessing .active_children ()))
898
+ # TODO: figure out a way to actually log this information without
899
+ # calling `log` in the signal handlers
900
+ multiprocessing .active_children ()
899
901
900
902
def fallback_SIGCHLD (self , sig , stack ):
901
903
# Reap zombies when using os.fork() (python 2.4)
902
- self .vmsg ("Got SIGCHLD, reaping zombies" )
904
+ # TODO: figure out a way to actually log this information without
905
+ # calling `log` in the signal handlers
903
906
try :
904
907
result = os .waitpid (- 1 , os .WNOHANG )
905
908
while result [0 ]:
@@ -909,11 +912,13 @@ def fallback_SIGCHLD(self, sig, stack):
909
912
pass
910
913
911
914
def do_SIGINT (self , sig , stack ):
912
- self .msg ("Got SIGINT, exiting" )
915
+ # TODO: figure out a way to actually log this information without
916
+ # calling `log` in the signal handlers
913
917
self .terminate ()
914
918
915
919
def do_SIGTERM (self , sig , stack ):
916
- self .msg ("Got SIGTERM, exiting" )
920
+ # TODO: figure out a way to actually log this information without
921
+ # calling `log` in the signal handlers
917
922
self .terminate ()
918
923
919
924
def top_new_client (self , startsock , address ):
0 commit comments