Old Ubuntu has libsystemd without sd_listen_fds()

This commit is contained in:
Kovid Goyal 2016-06-22 11:12:36 +05:30
parent 4c5a77361a
commit f6cbbb6365

View File

@ -33,6 +33,7 @@ if islinux:
try: try:
systemd = ctypes.CDLL(ctypes.util.find_library('systemd')) systemd = ctypes.CDLL(ctypes.util.find_library('systemd'))
systemd.sd_listen_fds
except Exception: except Exception:
pass pass
else: else: