-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
~/work/test/js $ cat write-fifo.js
#!/usr/bin/env node
require("fs").createWriteStream(process.argv[2]);
~/work/test/js $ mkfifo foo
~/work/test/js $ ./write-fifo.js foo
^C <---- it just stucks here
130 ~/work/test/js $ ./write-fifo.js whatever-file-name
~/work/test/js $
There is a thread blocked in pipe_wait, as shown in its wchan.
Can we always open the file in non-blocking mode? After all it has no effect for real disk files, but avoids infinite waiting when that happens to be a named pipe.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.