diff --git a/src/client/cockpit-client b/src/client/cockpit-client index e9260333ed17..55a2411049b2 100755 --- a/src/client/cockpit-client +++ b/src/client/cockpit-client @@ -47,11 +47,11 @@ except (ValueError, ImportError): libexecdir = os.path.realpath(__file__ + '/..') -libc6 = ctypes.cdll.LoadLibrary('libc.so.6') +sys_prctl = ctypes.CDLL(None).prctl def prctl(*args): - if libc6.prctl(*args) != 0: + if sys_prctl(*args) != 0: raise Exception('prctl() failed') diff --git a/src/cockpit/transports.py b/src/cockpit/transports.py index 913603544ac0..4fcf76121ee9 100644 --- a/src/cockpit/transports.py +++ b/src/cockpit/transports.py @@ -33,11 +33,11 @@ from .jsonutil import JsonObject, get_int -libc6 = ctypes.cdll.LoadLibrary('libc.so.6') +sys_prctl = ctypes.CDLL(None).prctl def prctl(*args: int) -> None: - if libc6.prctl(*args) != 0: + if sys_prctl(*args) != 0: raise OSError('prctl() failed') diff --git a/vendor/ferny b/vendor/ferny index f869d10d1251..c8713c4d3ba7 160000 --- a/vendor/ferny +++ b/vendor/ferny @@ -1 +1 @@ -Subproject commit f869d10d12511b0463e71bf3b26e232aa95cbc6d +Subproject commit c8713c4d3ba74a9d8db1ce8e0a15296e6a333257