def term_signal(): """Gets the term signal for the os.""" if os.name == 'nt': return signal.SIGBREAK else: return signal.SIGTERM