From 9fb966be55d832ec0324d4f6cd35fd230a9a907b Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Wed, 5 Mar 2003 05:59:01 +0000 Subject: remove race condition for a long HELO git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@369 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index d8b9059..de382ac 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -154,9 +154,7 @@ main (int argc, char **argv) if (verbose == TRUE) printf ("SMTP %s - %d sec. response time, %s\n", state_text (result), (int) (end_time - start_time), buffer); - else - printf ("SMTP %s - %d second response time\n", state_text (result), - (int) (end_time - start_time)); + } } @@ -188,6 +186,8 @@ main (int argc, char **argv) /* reset the alarm */ alarm (0); + printf ("SMTP %s - %d second response time\n", state_text (result), (int) (end_time - start_time)); + return result; } -- cgit v0.10-9-g596f