summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
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);