Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
icinga-mod_gearman
> icinga-mod_gearman-neb_FD_leak-fix.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File icinga-mod_gearman-neb_FD_leak-fix.patch of Package icinga-mod_gearman (Revision 50)
Currently displaying revision
50
,
show latest
commit 39af9dd793f37d1de7003f5703838a204090cc65 Author: Sven Nierlein <sven@nierlein.de> Date: Mon Jan 14 10:42:42 2013 +0100 fixed leaking FDs on reloading neb diff --git a/Changes b/Changes index c82e317..6d1d16d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ This file documents the revision history for mod_gearman. +next: + - fixed leaking FDs on reloading neb + 1.4.2 Thu Jan 10 10:56:37 CET 2013 - force check on orphaned events - added mini epn diff --git a/neb_module/mod_gearman.c b/neb_module/mod_gearman.c index 84eb3f0..33046df 100644 --- a/neb_module/mod_gearman.c +++ b/neb_module/mod_gearman.c @@ -246,6 +246,11 @@ int nebmodule_deinit( int flags, int reason ) { /* cleanup */ free_client(&client); + /* close old logfile */ + if(mod_gm_opt->logfile_fp != NULL) { + fclose(mod_gm_opt->logfile_fp); + } + mod_gm_free_opt(mod_gm_opt); return NEB_OK;