Use a busy loop for signaled process
This commit is contained in:
parent
18cd97d914
commit
d228acd30a
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ def t(signal, q):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue