Ejemplo n.º 1
0
def checkSignals():
    if hasattr(rpm, "checkSignals") and hasattr(rpm, 'signalsCaught'):
        if rpm.signalsCaught([
                signal.SIGINT, signal.SIGTERM, signal.SIGPIPE, signal.SIGQUIT,
                signal.SIGHUP
        ]):
            sys.exit(1)
Ejemplo n.º 2
0
def checkSignals():
    if hasattr(rpm, "checkSignals") and hasattr(rpm, 'signalsCaught'):
        if rpm.signalsCaught([signal.SIGINT,
                              signal.SIGTERM,
                              signal.SIGPIPE,
                              signal.SIGQUIT,
                              signal.SIGHUP]):
            sys.exit(1)