Commit a75d42e
committed
pythongh-124621: Emscripten: Fix regression in use-after-close error handling
Introduced in pythonGH-136822. If the fd is already closed,
`SYSCALLS.getStreamFromFD()` throws an error. We need to catch it and
discard it. The `__wasi_fd_read_orig()` fallback will use it to set errno.1 parent 7ae4749 commit a75d42e
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| |||
0 commit comments