Revert "centralized TERM signal handling"

This reverts commit 5a88478ccc.
is WIP, not ready for use yet
This commit is contained in:
Brian Coca 2016-02-10 09:48:22 -05:00
commit d9dcb2a427
3 changed files with 15 additions and 9 deletions

View file

@ -27,7 +27,6 @@ import time
import yaml
import re
import getpass
import signal
import subprocess
from ansible import __version__
@ -78,11 +77,6 @@ class CLI(object):
self.action = None
self.callback = callback
def _terminate(self, signum=None, framenum=None):
if signum is not None:
display.debug("Termination signal detected, shutting down gracefully: %d" % os.getpid() )
raise SystemExit
def set_action(self):
"""
Get the action the user wants to execute from the sys argv list.
@ -115,9 +109,6 @@ class CLI(object):
else:
display.display(u"No config file found; using defaults")
# Manage user interruptions
signal.signal(signal.SIGTERM, self._terminate)
@staticmethod
def ask_vault_passwords(ask_new_vault_pass=False, rekey=False):
''' prompt for vault password and/or password change '''