2 =======================
4 .. automodule:: systemd.login
11 Example: polling for events
12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 This example shows that session/uid/seat/machine events can be waited
15 for (using e.g. `poll`). This makes it easy to integrate Monitor in an
19 >>> from systemd import login
20 >>> m = login.Monitor("machine")
22 >>> p.register(m, m.get_events())
23 >>> login.machine_names()
27 >>> login.machine_names()