Part of the context manager protocol. Closes the monitor.. __enter__() -> self
Part of the context manager protocol. Returns self. flush() -> None
Reset the wakeup state of the monitor object. This method invokes sd_login_monitor_flush(). See man:sd_login_monitor_flush(3).close() -> None
Free resources allocated by this Monitor object. This method invokes sd_login_monitor_unref(). See man:sd_login_monitor_unref(3).get_timeout_ms() -> int
Returns a timeout value suitable for usage in poll(), the value returned by .get_timeout() converted to relative ms, or -1 if no timeout is necessary.get_timeout() -> int or None
Returns a timeout value for usage in poll(), the time since the epoch of clock_gettime(2) in microseconds, or None if no timeout is necessary.
The return value must be converted to a relative timeout in milliseconds if it is to be used as an argument for poll(). See man:sd_login_monitor_get_timeout(3) for further discussion.get_events() -> int
Returns a mask of poll() events to wait for on the file descriptor returned by .fileno().
See man:sd_login_monitor_get_events(3) for further discussion.fileno() -> int
Get a file descriptor to poll for events. This method wraps sd_login_monitor_get_fd(3).Monitor([category]) -> ...
Monitor may be used to monitor login sessions, users, seats, and virtual machines/containers. Monitor provides a file descriptor which can be integrated in an external event loop.
See man:sd_login_monitor_new(3) for the details about what can be monitored.uids() -> list
Returns a list of uids of users who currently have login sessions. Wraps sd_get_uids(3).machine_names() -> list
Returns a list of currently running virtual machines and containers on the system. Wraps sd_get_machine_names(3).sessions() -> list
Returns a list of current login sessions. Wraps sd_get_sessions(3).seats() -> list
Returns a list of currently available local seats. Wraps sd_get_seats(3).Python interface to the libsystemd-login library.%�8 ���������: %`! 5 #% !`4 .%�!�2 :%� 2 I%P �1 O% �0 U%`�0 _%� 0 v%p@8 |%p�7 �%p@7 �%p�6 h%� �5 `9 pGA$3a1��GA$3a1��GA$3a1�$�$GA$3a1�YGA$3a1�$�$GA$3a1�$�$GA$3a1��GA$3a1�$�$login.cpython-36m-x86_64-linux-gnu.so-234-8.el8.x86_64.debug�+Q$�7zXZ�ִF!t/���H]?�E�h=��ڊ�2N�I��j[�P�D���R�Q8ͣ?�ՠ��k�]��*�t�T�9�& �U�\��M-�O��X�E�7�h���~�e���