tools/captured_sites/control.py
def _handle_signal(sig, _):
  """Handles received signals to make sure spawned test process are killed.

  sig (int): An integer representing the received signal, for example SIGTERM.
  """

  # Don't do any cleanup here, instead, leave it to the finally blocks.
  # Assumption is based on https://docs.python.org/3/library/sys.html#sys.exit:
  # cleanup actions specified by finally clauses of try statements are honored.

  # https://tldp.org/LDP/abs/html/exitcodes.html:
  # Exit code 128+n -> Fatal error signal "n".
  print('Signal to quit received, waiting for potential WPR write to complete')
  time.sleep(1)
  sys.exit(128 + sig)
Handles received signals to make sure spawned test process are killed.

  sig (int): An integer representing the received signal, for example SIGTERM.
  
Handles received signals to make sure spawned test process are killed.
sig (int): An integer representing the received signal, for example SIGTERM.
Handles received signals to make sure spawned test process are killed . sig ( int ) : An integer representing the received signal for example SIGTERM .
def _handle_signal(sig, _):
  print('Signal to quit received, waiting for potential WPR write to complete')
  time.sleep(1)
  sys.exit(128 + sig)
def _handle_signal ( sig , _ ) : print ( 'Signal to quit received, waiting for potential WPR write to complete' ) time . sleep ( 1 ) sys . exit ( 128 + sig )
Handles received signals to make sure spawned test process are killed.
Handles received signals to make sure spawned test process are killed .
"""Handles received signals to make sure spawned test process are killed.

  sig (int): An integer representing the received signal, for example SIGTERM.
  """ # Don't do any cleanup here, instead, leave it to the finally blocks. # Assumption is based on https://docs.python.org/3/library/sys.html#sys.exit: # cleanup actions specified by finally clauses of try statements are honored. # https://tldp.org/LDP/abs/html/exitcodes.html: # Exit code 128+n -> Fatal error signal "n".
sig
_