From 7a460b86fb6515ea84a53fe8ba091f20cbe07d02 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 29 Jul 2014 08:50:37 +0200 Subject: Make failure to resize hotplug buffer non-fatal Some architectures seem to have broken SO_RCVBUFFORCE. Signed-off-by: Steven Barth --- plug/hotplug.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plug') diff --git a/plug/hotplug.c b/plug/hotplug.c index b50c04e..ef98f38 100644 --- a/plug/hotplug.c +++ b/plug/hotplug.c @@ -463,10 +463,8 @@ void hotplug(char *rules) exit(1); } - if (setsockopt(hotplug_fd.fd, SOL_SOCKET, SO_RCVBUFFORCE, &nlbufsize, sizeof(nlbufsize))) { + if (setsockopt(hotplug_fd.fd, SOL_SOCKET, SO_RCVBUFFORCE, &nlbufsize, sizeof(nlbufsize))) ERROR("Failed to resize receive buffer: %s\n", strerror(errno)); - exit(1); - } json_script_init(&jctx); queue_proc.cb = queue_proc_cb; -- cgit v1.2.3