mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Update to the new open() semantics, need O_NONBLOCK now.
This commit is contained in:
parent
92cc1cf79e
commit
5ecb59ef0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22358
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue