diff --git a/owrx/feature.py b/owrx/feature.py index 6bba2142..4f5690ac 100644 --- a/owrx/feature.py +++ b/owrx/feature.py @@ -165,7 +165,14 @@ class FeatureDetector(object): cwd=tmp_dir, env=env, ) - rc = process.wait() + while True: + try: + rc = process.wait(10) + break + except subprocess.TimeoutExpired: + logger.warning("feature check command \"%s\" did not return after 10 seconds!", command) + process.kill() + if expected_result is None: return rc != 32512 else: