Skip to content

Commit

Permalink
vendor: update to the latest systemd_ctypes
Browse files Browse the repository at this point in the history
We didn't sync this in a while and there have been a lot of changes.

We also have a critical bug fix included: we recently introduced a test
case (in 0bb7438) which triggers a
segfault in the binding layer of systemd_ctypes due to FFI call
trampolines being garbage collected while they're still running.

This is currently blocking downstream packaging on several non-x86_64
architectures.
  • Loading branch information
allisonkarlitskaya committed Feb 2, 2024
1 parent 96335a4 commit b486774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cockpit/channels/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from cockpit._vendor.systemd_ctypes import Handle, PathWatch
from cockpit._vendor.systemd_ctypes.inotify import Event as InotifyEvent
from cockpit._vendor.systemd_ctypes.pathwatch import Listener as PathWatchListener

from ..channel import Channel, ChannelError, GeneratorChannel
from ..jsonutil import (
Expand Down Expand Up @@ -298,7 +299,7 @@ class Follow(enum.Enum):
YES = True


class FsInfoChannel(Channel):
class FsInfoChannel(Channel, PathWatchListener):
payload = 'fsinfo'

# Options (all get set in `do_open()`)
Expand Down

0 comments on commit b486774

Please sign in to comment.