refs #2822 wait() in a loop

pull/63/head
Natalia Serrano 2025-09-18 11:29:29 +02:00
parent d945d8566e
commit bbd03af7ad
2 changed files with 13 additions and 6 deletions

View File

@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [8.3.2] - 2025-09-18
### Fixed
- Wait for children within a loop, not just once
## [8.3.1] - 2025-09-11
### Fixed

View File

@ -341,12 +341,13 @@ class ogLiveWorker(ServerWorker):
sout = stdout_buf.decode('utf-8', 'ignore').strip()
serr = stderr_buf.decode('utf-8', 'ignore').strip()
try:
p.wait (0.1)
finished = True
except subprocess.TimeoutExpired:
## BUG: dejamos un zombie colgando
pass
## our child already closed stdout/stderr but it may not immediately exit
## we need to wait for it within a loop, not just once
while True:
try:
p.wait (1)
except subprocess.TimeoutExpired:
pass
## DEBUG