Skip to content

Commit dd52713

Browse files
authored
Rewrite TestChildProcessCleanup with socket-based deterministic liveness probe (#2265)
1 parent 62eb08e commit dd52713

File tree

2 files changed

+201
-258
lines changed

2 files changed

+201
-258
lines changed

src/mcp/os/win32/utilities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ def pid(self) -> int:
123123
"""Return the process ID."""
124124
return self.popen.pid
125125

126+
@property
127+
def returncode(self) -> int | None:
128+
"""Return the exit code, or ``None`` if the process has not yet terminated."""
129+
return self.popen.returncode
130+
126131

127132
# ------------------------
128133
# Updated function

0 commit comments

Comments
 (0)