]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4108] unrelated cleanup: catch an exception by reference.
authorJINMEI Tatuya <jinmei@wide.ad.jp>
Sun, 1 Nov 2015 01:45:08 +0000 (10:45 +0900)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 22 Feb 2016 19:55:00 +0000 (20:55 +0100)
also folded a too long line.

src/bin/dhcp4/dhcp4_srv.cc

index 41bd0fafbc78249a44c9cf1bb34045943193c3a6..c7ea30fc8b12a204be883dfa843f690c21939538 100644 (file)
@@ -444,13 +444,14 @@ Dhcpv4Srv::run() {
                     .arg(timeout);
             }
 
-        } catch (const SignalInterruptOnSelect) {
+        } catch (const SignalInterruptOnSelect&) {
             // Packet reception interrupted because a signal has been received.
             // This is not an error because we might have received a SIGTERM,
             // SIGINT, SIGHUP or SIGCHILD which are handled by the server. For
             // signals that are not handled by the server we rely on the default
             // behavior of the system.
-            LOG_DEBUG(packet4_logger, DBG_DHCP4_DETAIL, DHCP4_BUFFER_WAIT_SIGNAL)
+            LOG_DEBUG(packet4_logger, DBG_DHCP4_DETAIL,
+                      DHCP4_BUFFER_WAIT_SIGNAL)
                 .arg(signal_set_->getNext());
         } catch (const std::exception& e) {
             // Log all other errors.