-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msys2-runtime: Update (suppress proc_waiter error messages)
- Loading branch information
Showing
2 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
msys2-runtime/0043-fixup-cygthread-suspend-thread-before-terminating.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From eafd9a22bc82cc443352a08c2853cd0d8649a436 Mon Sep 17 00:00:00 2001 | ||
From: Jeremy Drake <github@jdrake.com> | ||
Date: Wed, 13 Nov 2024 15:13:04 -0800 | ||
Subject: [PATCH 43/N] fixup! cygthread: suspend thread before terminating. | ||
|
||
Suppress error output if ReadFile on child wait pipe returns | ||
ERROR_OPERATION_ABORTED due to addition of CancelSynchronousIo call. | ||
--- | ||
winsup/cygwin/pinfo.cc | 7 ++++--- | ||
1 file changed, 4 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc | ||
index a5f5d6e..43e0034 100644 | ||
--- a/winsup/cygwin/pinfo.cc | ||
+++ b/winsup/cygwin/pinfo.cc | ||
@@ -1262,13 +1262,14 @@ proc_waiter (void *arg) | ||
|
||
for (;;) | ||
{ | ||
- DWORD nb; | ||
+ DWORD nb, err; | ||
char buf = '\0'; | ||
|
||
if (!ReadFile (vchild.rd_proc_pipe, &buf, 1, &nb, NULL) | ||
- && GetLastError () != ERROR_BROKEN_PIPE) | ||
+ && (err = GetLastError ()) != ERROR_BROKEN_PIPE) | ||
{ | ||
- system_printf ("error on read of child wait pipe %p, %E", vchild.rd_proc_pipe); | ||
+ if (err != ERROR_OPERATION_ABORTED) | ||
+ system_printf ("error on read of child wait pipe %p, %E", vchild.rd_proc_pipe); | ||
break; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters