mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01: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
@ -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 New Issue
Block a user