X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=plug%2Fhotplug.c;h=ef98f3885b771f9b540234718427886f6a85fff2;hp=b50c04e488f90c0b555274e3d5702476ef3f88e9;hb=7a460b86fb6515ea84a53fe8ba091f20cbe07d02;hpb=fb60df0eb16d4300efabda72249598d0748439e2 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;