From 98dd77e86e0cc339543cc8711ff908e6929f0636 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 29 Oct 2013 16:35:37 +0100 Subject: rtnl: introduce default timeout We set it to 10 secs (as we are only communicating with the kernel, it seems we should be able to bail out sooner than sd-bus, which uses 25). When passing timout 0, the default is used, use this in link-config. --- src/udev/net/link-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/udev/net/link-config.c') diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index a86c74d5f7..9d6c96b5a5 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -293,7 +293,7 @@ static int rtnl_set_properties(sd_rtnl *rtnl, int ifindex, const char *name, con } if (need_update) { - r = sd_rtnl_send_with_reply_and_block(rtnl, message, 5 * USEC_PER_SEC, NULL); + r = sd_rtnl_send_with_reply_and_block(rtnl, message, 0, NULL); if (r < 0) return r; } -- cgit v1.2.3-54-g00ecf