diff options
author | Filipe Laíns <lains@riseup.net> | 2021-06-24 16:34:59 +0100 |
---|---|---|
committer | Filipe Laíns <lains@riseup.net> | 2021-06-24 16:34:59 +0100 |
commit | 383e79a77a8fad5777c166d114ea9f5a4cacc2d2 (patch) | |
tree | 3ce8640cc074dd9b0093c56d0d15a22f30e9f39e | |
parent | 0ec9baf01a0c6adc2e9066118ae73264ffb793c3 (diff) |
hidraw: do not set O_NONBLOCK unecessarily
Signed-off-by: Filipe Laíns <lains@riseup.net>
-rw-r--r-- | ioctl/hidraw.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ioctl/hidraw.py b/ioctl/hidraw.py index e41c714..037a93a 100644 --- a/ioctl/hidraw.py +++ b/ioctl/hidraw.py @@ -2,7 +2,6 @@ import array import ctypes -import fcntl import os from typing import List, Tuple @@ -52,7 +51,6 @@ class Hidraw(object): self._path = path self._fd = os.open(path, os.O_RDWR) self.read_length = read_length - fcntl.fcntl(self._fd, fcntl.F_SETFL, os.O_NONBLOCK) def __str__(self) -> str: return f'Hidraw({self.path})' |