Browse Source

[4108] unrelated cleanup: catch an exception by reference.

also folded a too long line.
JINMEI Tatuya 9 years ago
parent
commit
6aa7bd8c31
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/bin/dhcp4/dhcp4_srv.cc

+ 3 - 2
src/bin/dhcp4/dhcp4_srv.cc

@@ -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.