d

Ricardo Jose Maraschini ricardo.maraschini at opservices.com.br
Wed Nov 14 13:25:29 CET 2012


if a fail to alloc memory happens on create_job() we need to treat it.

ok?


Index: base/workers.c
===================================================================
--- base/workers.c	(revision 2472)
+++ base/workers.c	(working copy)
@@ -967,6 +967,9 @@
 		timeout = host_check_timeout;
 
 	job = create_job(WPJOB_CHECK, cr, timeout, cmd);
+	if (job == NULL)
+		return ERROR;
+
 	return wproc_run_job(job, mac);
 }
 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov




More information about the Developers mailing list