diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-03 13:55:07 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-03 13:55:07 +0000 |
| commit | 4051534b832d5c644a00cd87d8769cd560bbfb15 (patch) | |
| tree | 9b26c929d8cc6a86b57c29184b6b6ae6440ddb58 /src | |
| parent | abfc016321a97d02915a3bd40ddfa46303e0b0df (diff) | |
Open fifo buffers in non block mode
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc index da755cf6..c17c5593 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -37,7 +37,7 @@ namespace Buffer* open_fifo(StringView name, StringView filename, bool scroll) { - int fd = open(parse_filename(filename).c_str(), O_RDONLY); + int fd = open(parse_filename(filename).c_str(), O_RDONLY | O_NONBLOCK); fcntl(fd, F_SETFD, FD_CLOEXEC); if (fd < 0) throw runtime_error("unable to open " + filename); |
