From 190845ce1d0fd12e6027c505922e33168cd0c88c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 18 Oct 2023 15:29:43 -0400 Subject: [PATCH] Add masked super timeout line to `do_hard_kill()` for would-be runtime hackers --- tractor/_spawn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tractor/_spawn.py b/tractor/_spawn.py index 9c61855..aede3b7 100644 --- a/tractor/_spawn.py +++ b/tractor/_spawn.py @@ -199,6 +199,10 @@ async def do_hard_kill( proc: trio.Process, terminate_after: int = 3, + # NOTE: for mucking with `.pause()`-ing inside the runtime + # whilst also hacking on it XD + # terminate_after: int = 99999, + ) -> None: # NOTE: this timeout used to do nothing since we were shielding # the ``.wait()`` inside ``new_proc()`` which will pretty much