fixed ETIME issue on FreeBSD 8 through 10, which broke all fact
gathering
This commit is contained in:
parent
ae29e43f93
commit
bc23926f42
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue