From d228acd30a979dddb2407316b1f406a43fe1d930 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 13 Jun 2022 19:11:29 +0530 Subject: [PATCH] Use a busy loop for signaled process --- kitty_tests/prewarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/prewarm.py b/kitty_tests/prewarm.py index 535553844..bb158f66c 100644 --- a/kitty_tests/prewarm.py +++ b/kitty_tests/prewarm.py @@ -86,7 +86,7 @@ import os, json; from kitty.utils import *; from kitty.fast_data_types import ge self.assertTrue(found_signal, f'Failed to to get SIGCHLD for signal {signal}') poll = select.poll() - p = subprocess.Popen([kitty_exe(), '+runpy', 'input()'], stderr=subprocess.DEVNULL, stdin=subprocess.PIPE) + p = subprocess.Popen([kitty_exe(), '+runpy', 'while True: x=2+2'], stderr=subprocess.DEVNULL, stdin=subprocess.PIPE) signal_read_fd = install_signal_handlers(signal.SIGCHLD)[0] try: poll.register(signal_read_fd, select.POLLIN)