daemon.py revision 5afbe712db5cc68213a24c45396ffb43fab05e3e
from ._daemon import (__version__,
def _convert_fileobj(fileobj):
try:
except AttributeError:
return fileobj
"""Return a list of socket activated descriptors
Example::
(in primary window)
$ systemd-activate -l 2000 python3 -c \\
'from systemd.daemon import listen_fds; print(listen_fds())'
(in another window)
$ telnet localhost 2000
(in primary window)
...
Execing python3 (...)
[3]
"""