Commit 1a8336e
Use overlapped pipes in WSLC session terminate tests
The LoadImage and ImportImage 'session terminate' sub-tests used CreatePipe
which creates synchronous pipe handles. When the relay calls ReadFile with an
OVERLAPPED structure on a synchronous handle, the call blocks the thread
instead of returning ERROR_IO_PENDING. This prevents WaitForMultipleObjects
from ever checking the session terminating event, causing a deadlock when
Terminate() is called.
Replace CreatePipe with OpenAnonymousPipe (FILE_FLAG_OVERLAPPED) so ReadFile
returns ERROR_IO_PENDING and the relay's event loop can detect the
termination signal.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 94792a4 commit 1a8336e
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1098 | 1101 | | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
| 1102 | + | |
1102 | 1103 | | |
1103 | 1104 | | |
1104 | 1105 | | |
| |||
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
| 1202 | + | |
1201 | 1203 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
| 1204 | + | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| |||
0 commit comments