refs #2822 wait() in a loop #63
|
@ -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/),
|
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).
|
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
|
## [8.3.1] - 2025-09-11
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -341,12 +341,13 @@ class ogLiveWorker(ServerWorker):
|
||||||
sout = stdout_buf.decode('utf-8', 'ignore').strip()
|
sout = stdout_buf.decode('utf-8', 'ignore').strip()
|
||||||
serr = stderr_buf.decode('utf-8', 'ignore').strip()
|
serr = stderr_buf.decode('utf-8', 'ignore').strip()
|
||||||
|
|
||||||
try:
|
## our child already closed stdout/stderr but it may not immediately exit
|
||||||
p.wait (0.1)
|
## we need to wait for it within a loop, not just once
|
||||||
finished = True
|
while True:
|
||||||
except subprocess.TimeoutExpired:
|
try:
|
||||||
## BUG: dejamos un zombie colgando
|
p.wait (1)
|
||||||
pass
|
except subprocess.TimeoutExpired:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
## DEBUG
|
## DEBUG
|
||||||
|
|
Loading…
Reference in New Issue