emscripten-core/emscripten
Voir sur GitHubfread returns garbage when pipe is closed
Open
#13 645 ouverte le 12 mars 2021
help wantedwontfix
Métriques du dépôt
- Stars
- (27 361 stars)
- Métriques de merge PR
- (Merge moyen 19j 10h) (147 PRs mergées en 30 j)
Description
On Windows, when content provided on the stdin pipe is read and pipe is closed, the following code throws with errno equal to undefined and fread keeps returning data instead of indicating EOF.
ErrnoError
at Object.ensureErrnoError (C:\***\a.out.js:11068:35)
at Object.staticInit (C:\***\a.out.js:11076:12)
at Object.<anonymous> (C:\***\a.out.js:12037:6)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
node: undefined,
setErrno: [Function],
errno: undefined,
message: 'FS error'