ports/sysutils/py-command_runner/patches/patch-command_runner___init___py

15 lines
620 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
https://github.com/netinvent/command_runner/pull/19
Index: command_runner/__init__.py
--- command_runner/__init__.py.orig
+++ command_runner/__init__.py
@@ -987,7 +987,7 @@ def deferred_command(command, defer_time=300):
if os.name == "nt":
deferrer = "ping 127.0.0.1 -n {} > NUL & ".format(defer_time)
else:
- deferrer = "ping 127.0.0.1 -c {} > /dev/null && ".format(defer_time)
+ deferrer = "sleep {} && ".format(defer_time)
# We'll create a independent shell process that will not be attached to any stdio interface
# Our command shall be a single string since shell=True