diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-03 23:16:39 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-03 23:16:39 +0200 |
commit | c6d4c5e72b67a262ed5aa1ebeec19401d74c8f26 (patch) | |
tree | 873ea0697d19a0568312cb2ab59a25652d870b3c /portato | |
parent | c3479371ed99a7f510759c2a334d448f1dbfd2f2 (diff) | |
download | portato-c6d4c5e72b67a262ed5aa1ebeec19401d74c8f26.tar.gz portato-c6d4c5e72b67a262ed5aa1ebeec19401d74c8f26.tar.bz2 portato-c6d4c5e72b67a262ed5aa1ebeec19401d74c8f26.zip |
Removed unused 'send_signal_to_group'
Diffstat (limited to '')
-rw-r--r-- | portato/helper.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/portato/helper.py b/portato/helper.py index d271611..ec3c70f 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -15,7 +15,7 @@ Some nice functions used in the program. """ from __future__ import absolute_import, with_statement -import os, signal, logging +import os, logging debug = logging.getLogger("portatoLogger").debug info = logging.getLogger("portatoLogger").info @@ -26,21 +26,6 @@ critical = logging.getLogger("portatoLogger").critical def N_ (s): return s -def send_signal_to_group (sig): - """Sends a signal to all processes of our process group (w/o ourselves). - - @param sig: signal number to send - @type sig: int""" - - def handler (sig, stack): - """Ignores the signal exactly one time and then restores the default.""" - signal.signal(sig, signal.SIG_DFL) - - signal.signal(sig, handler) - - pgid = os.getpgrp() - os.killpg(pgid, sig) - def get_runsystem (): # check for sabayon first, as sabayon also has the gentoo release for sp in ("/etc/sabayon-release", "/etc/sabayon-edition"): |