We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20a45f7 + dd52713 commit 45f36a7Copy full SHA for 45f36a7
2 files changed
src/mcp/os/win32/utilities.py
@@ -123,6 +123,11 @@ def pid(self) -> int:
123
"""Return the process ID."""
124
return self.popen.pid
125
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
+
131
132
# ------------------------
133
# Updated function
0 commit comments