fixed ETIME issue on FreeBSD 8 through 10, which broke all fact

gathering
pull/7081/head
Brian Coca 11 years ago
parent ae29e43f93
commit bc23926f42

@ -49,7 +49,7 @@ except ImportError:
class TimeoutError(Exception):
pass
def timeout(seconds=10, error_message=os.strerror(errno.ETIME)):
def timeout(seconds=10, error_message="Timer expired"):
def decorator(func):
def _handle_timeout(signum, frame):
raise TimeoutError(error_message)

Loading…
Cancel
Save