Update to the new open() semantics, need O_NONBLOCK now.

This commit is contained in:
Joerg Wunsch 1997-02-06 22:24:35 +00:00
parent 92cc1cf79e
commit 5ecb59ef0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22358

View file

@ -86,7 +86,7 @@ main(int argc, char **argv)
if (errs || argc < 1)
usage();
if ((fd = open(devname, O_RDONLY, 0)) == -1)
if ((fd = open(devname, O_RDONLY | O_NONBLOCK, 0)) == -1)
err(EX_NOINPUT, "open(%s)", devname);
if (eq(argv[0], "select")) {