dbus-templates/logind: Open fds as nonblocking
This is what logind does, and what libinput relies on to function. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4374>
This commit is contained in:
parent
136c0037cc
commit
57ec7e403c
@ -117,7 +117,7 @@ class Login1Session(mockobject.DBusMockObject):
|
||||
if not devname:
|
||||
raise dbus.exceptions.DBusException(f'Device file {major}:{minor} doesn\\\'t exist',
|
||||
major=major, minor=minor)
|
||||
fd = os.open('/dev/' + devname, os.O_RDWR | os.O_CLOEXEC)
|
||||
fd = os.open('/dev/' + devname, os.O_RDWR | os.O_CLOEXEC | os.O_NONBLOCK)
|
||||
unix_fd = dbus.types.UnixFd(fd)
|
||||
os.close(fd)
|
||||
return (unix_fd, False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user