Make the issue3290 compliant with non Linux OS

This commit is contained in:
nicolargo 2025-09-28 15:09:19 +02:00
parent 48674ee71f
commit 38c7bfccba
1 changed files with 3 additions and 0 deletions

View File

@ -595,6 +595,9 @@ def exit_after(seconds, default=None):
q.put(func(*args, **kwargs))
def decorator(func):
if not LINUX:
return func
def wraps(*args, **kwargs):
q = Queue()
p = Process(target=handler, args=(q, func, args, kwargs))