diff options
author | Tom Gundersen <teg@jklm.no> | 2015-02-04 15:00:20 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-02-05 12:04:19 +0100 |
commit | a97dcc12e486ecff531809802930a26c4da827f2 (patch) | |
tree | 6314e0f416f940baf01cb4cb219c8ce62dc9bec9 /src/network/networkd.c | |
parent | 3f171cabadfcd8699def3732d264f63f8e800562 (diff) |
networkd: exit on idle
We will be woken up on rtnl or dbus activity, so let's just quit if some time has passed and that is the only thing that can happen.
Note that we will always stay around if we expect network activity (e.g. DHCP is enabled), as we are not restarted on that.
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r-- | src/network/networkd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c index 0aaef8b792..571f523898 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) { "READY=1\n" "STATUS=Processing requests..."); - r = sd_event_loop(m->event); + r = manager_run(m); if (r < 0) { log_error_errno(r, "Event loop failed: %m"); goto out; |