[icinga-checkins] icinga.org: icinga-core/hpatel/core: execv on checks adjustment

git at icinga.org git at icinga.org
Mon May 24 20:37:55 CEST 2010


Module: icinga-core
Branch: hpatel/core
Commit: aaf2ccf4d66109aca84a9dc5bead89f9d44baf47
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=aaf2ccf4d66109aca84a9dc5bead89f9d44baf47

Author: hirenp <hirenp at firebird.(none)>
Date:   Mon May 24 20:36:30 2010 +0200

execv on checks adjustment

---

 base/checks.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/base/checks.c b/base/checks.c
index e101cc8..22da0d0 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -806,6 +806,8 @@ int run_async_service_check(service *svc, int check_options, double latency, int
 	                     if (s){
 	                         *s = '\0';
 	                         p = s+1;
+				 for(;isspace(*p);p++)
+					;
 	 
 	                         chldargs[0] = processed_command;
 	                         for(i=1;i<MAXCHLDARGS-2;i++){
@@ -815,6 +817,8 @@ int run_async_service_check(service *svc, int check_options, double latency, int
 	                             if (s){
 	                                 *s = '\0';
 	                                 p = s+1;
+					 for(;isspace(*p);p++)
+						;
 	                             }
 	 
 	                             if (!s)





More information about the icinga-checkins mailing list