[nagiosplug] git-notify: Don't abort if mail(1) exits non-zero

"Holger Weiss" <[email protected]>
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: 9e686891791001155d535634572eb0753835e7fd
 Author: Holger Weiss <[email protected]>
   Date: Sat Nov  7 02:23:32 2009 +0100
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=9e68689

git-notify: Don't abort if mail(1) exits non-zero

As nothing in git-notify depends on the success of the mail(1) call,
don't abort if it fails, just spit out a warning.

---

 tools/git-notify |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/git-notify b/tools/git-notify
index 548f7da..265f37b 100755
--- a/tools/git-notify
+++ b/tools/git-notify
@@ -307,7 +307,7 @@ sub mail_notification($$$@)
         }
         binmode MAIL, ":utf8";
         print MAIL join("\n", @text), "\n";
-        close MAIL or die $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?";
+        close MAIL or warn $! ? "Cannot execute $mailer: $!" : "$mailer exited with status: $?";
     }
 }
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.