Make failure to resize hotplug buffer non-fatal
authorSteven Barth <steven@midlink.org>
Tue, 29 Jul 2014 06:50:37 +0000 (08:50 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 29 Jul 2014 06:50:37 +0000 (08:50 +0200)
Some architectures seem to have broken SO_RCVBUFFORCE.

Signed-off-by: Steven Barth <steven@midlink.org>
plug/hotplug.c

index b50c04e488f90c0b555274e3d5702476ef3f88e9..ef98f3885b771f9b540234718427886f6a85fff2 100644 (file)
@@ -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;