Why does Process.Refresh reset the _exited field? #113630
Unanswered
dodexahedron
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This seems to me to be not only unnecessary, but unintuitive and actively detrimental, as it leads to potential exceptions on what should be perfectly normal attempts to access the
HasExited
property.If
_exited
is already true, shouldn't that be permanent?In other words, how can a process that has exited legitimately revert to not having exited?
And, with the same reasoning, shouldn't any exit code or exit time also only be cleared if the
_exited
field isfalse
?I didn't want to file this as an issue in case there's reasoning behind it that I hadn't considered, but it does seem like a bug to me.
Anyone have thoughts or insight on this?
Beta Was this translation helpful? Give feedback.
All reactions