monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] [monit] r258 committed - do not log error from shutdown ...


From: monit
Subject: [monit-dev] [monit] r258 committed - do not log error from shutdown ... handle_mmonit shuts down the socket...
Date: Thu, 16 Sep 2010 12:15:20 +0000

Revision: 258
Author: martin2812
Date: Thu Sep 16 05:13:58 2010
Log: do not log error from shutdown ... handle_mmonit shuts down the socket partially so it produces transient error naturally
http://code.google.com/p/monit/source/detail?r=258

Modified:
 /trunk/net.c

=======================================
--- /trunk/net.c        Thu Sep 16 05:05:10 2010
+++ /trunk/net.c        Thu Sep 16 05:13:58 2010
@@ -445,8 +445,7 @@
 int close_socket(int socket) {
   int r;

-  if ((r = shutdown(socket, 2)) < 0)
- LogError("%s: Socket %d shutdown failed -- %s\n", prog, socket, STRERROR);
+  shutdown(socket, 2);

/* Try to close even if shutdown failed so we won't leak file descriptors */
   do {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]