We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa31494 commit a80be13Copy full SHA for a80be13
craft_parts/utils/process.py
@@ -151,6 +151,7 @@ def run(
151
152
with closing(BytesIO()) as combined_io:
153
while True:
154
+ finished = proc.poll() is not None
155
try:
156
# Time out if we don't have any event to handle
157
for key, mask in selector.select(0.1):
@@ -164,7 +165,7 @@ def run(
164
165
except BlockingIOError:
166
pass
167
- if proc.poll() is not None:
168
+ if finished:
169
combined = combined_io.getvalue()
170
break
171
docs/reference/changelog.rst
@@ -2,6 +2,13 @@
2
Changelog
3
*********
4
5
+2.4.3 (unreleased)
6
+------------------
7
+
8
+Bug fixes:
9
10
+- Address race condition when collecting subprocess output.
11
12
2.4.2 (2025-03-04)
13
------------------
14
0 commit comments