diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-10-26 23:27:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-27 17:17:34 +0100 |
commit | a48308701a4d89d7cc0d0557cfabaec94a0bb3b0 (patch) | |
tree | a7b2baa086249a6c37c3479f28f4a680a1133a64 /coreutils/stty.c | |
parent | ca254490d703c750390042c9afa21d1537c90e9a (diff) |
add and use xopen_nonblocking (-18b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index baa1ec2da..cb9b18361 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c @@ -1295,7 +1295,7 @@ int stty_main(int argc, char **argv) if (file_name) { int fd, fdflags; G.device_name = file_name; - fd = xopen(G.device_name, O_RDONLY | O_NONBLOCK); + fd = xopen_nonblocking(G.device_name); if (fd != STDIN_FILENO) { dup2(fd, STDIN_FILENO); close(fd); |