summaryrefslogtreecommitdiff
path: root/kvmd/inotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/inotify.py')
-rw-r--r--kvmd/inotify.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/inotify.py b/kvmd/inotify.py
index 0511f088..d76e73e3 100644
--- a/kvmd/inotify.py
+++ b/kvmd/inotify.py
@@ -25,7 +25,6 @@
import sys
import os
import asyncio
-import ctypes
import struct
import dataclasses
import types
@@ -64,7 +63,7 @@ def _inotify_parsed_buffer(data: bytes) -> Generator[tuple[int, int, int, bytes]
def _inotify_check(retval: int) -> int:
if retval < 0:
- c_errno = ctypes.get_errno()
+ c_errno = libc.get_errno()
if c_errno == errno.ENOSPC: # pylint: disable=no-else-raise
raise OSError(c_errno, "Inotify watch limit reached")
elif c_errno == errno.EMFILE: