1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request from bcoca/freebsd_fact_fix

fixed ETIME issue on FreeBSD 8 through 10, which broke fact gather
This commit is contained in:
Michael DeHaan 2014-04-21 09:15:10 -04:00
commit f09c0c7c64

View file

@ -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)