From a48308701a4d89d7cc0d0557cfabaec94a0bb3b0 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 26 Oct 2009 23:27:08 +0100 Subject: add and use xopen_nonblocking (-18b) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Denys Vlasenko --- coreutils/stty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') diff --git a/coreutils/stty.c b/coreutils/stty.c index baa1ec2..cb9b183 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); -- cgit v1.1