mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 18:20:26 +09:00
Fix very minor typo (#33423)
Co-authored-by: Ben Rothermel <ben.rothermel@tocabot.io>
This commit is contained in:
parent
aa6d1ac74e
commit
d2a3709b9e
1 changed files with 1 additions and 1 deletions
|
@ -1189,7 +1189,7 @@ namespace System
|
|||
|
||||
// For pipes that are closing or broken, just stop.
|
||||
// (E.g. ERROR_NO_DATA ("pipe is being closed") is returned when we write to a console that is closing;
|
||||
// ERROR_BROKEN_PIPE ("pipe was closed") is returned when stdin was closed, which is mot an error, but EOF.)
|
||||
// ERROR_BROKEN_PIPE ("pipe was closed") is returned when stdin was closed, which is not an error, but EOF.)
|
||||
int errorCode = Marshal.GetLastWin32Error();
|
||||
if (errorCode == Interop.Errors.ERROR_NO_DATA || errorCode == Interop.Errors.ERROR_BROKEN_PIPE)
|
||||
return Interop.Errors.ERROR_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue