Browse code

avoid abort on unsuccessful module startup

Jiri Kuthan authored on 25/06/2003 14:23:36
Showing 1 changed files
... ...
@@ -270,7 +270,7 @@ int tcp_disable = 0; /* 1 if tcp is disabled */
270 270
 struct process_table *pt=0;		/*array with childrens pids, 0= main proc,
271 271
 									alloc'ed in shared mem if possible*/
272 272
 int sig_flag = 0;              /* last signal received */
273
-int debug = 0;
273
+int debug = L_NOTICE;
274 274
 int dont_fork = 0;
275 275
 int log_stderr = 0;
276 276
 /* check if reply first via host==us */
... ...
@@ -378,7 +378,7 @@ void cleanup(show_status)
378 378
 	}
379 379
 #endif
380 380
 #ifdef SHM_MEM
381
-	shm_free(pt);
381
+	if (pt) shm_free(pt);
382 382
 	pt=0;
383 383
 	if (show_status){
384 384
 			LOG(memlog, "Memory status (shm):\n");