MCPcopy
hub / github.com/celery/celery / set_pdeathsig

Function set_pdeathsig

celery/platforms.py:713–720  ·  view source on GitHub ↗

Sends signal ``name`` to process when parent process terminates.

(name)

Source from the content-addressed store, hash-verified

711
712
713def set_pdeathsig(name):
714 """Sends signal ``name`` to process when parent process terminates."""
715 if signals.supported('SIGKILL'):
716 try:
717 _set_pdeathsig(signals.signum('SIGKILL'))
718 except OSError:
719 # We ignore when OS does not support set_pdeathsig
720 pass
721
722
723def set_process_title(progname, info=None):

Callers 2

test_callMethod · 0.90

Calls 2

supportedMethod · 0.80
signumMethod · 0.80

Tested by 2

test_callMethod · 0.72