[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tyndur-devel] [PATCH] servmgr: Etwas grosszuegiger Dateien schliessen



On Sun, Aug 09, 2009 at 09:50:50AM +0200, Antoine Kaufmann wrote:
> ! servmgr: Wenn man in servmgr die Konfigurationsdateien nach dem
>            Einlesen auch wieder schliesst, lassen sich diese danach
> 	   sogar loeschen.
> 
> Signed-off-by: Antoine Kaufmann <toni@xxxxxxxxxx>

Acked-by: Kevin Wolf <kevin@xxxxxxxxxx>


>
>
> ---
>  src/modules/servmgr/config.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/modules/servmgr/config.c b/src/modules/servmgr/config.c
> index c722e41..ce7f8ef 100644
> --- a/src/modules/servmgr/config.c
> +++ b/src/modules/servmgr/config.c
> @@ -161,6 +161,7 @@ static void config_parse_deps(const char* path,
>  
>          list_push(conf_serv->deps, dep);
>      }
> +    fclose(f);
>  }
>  
>  /**
> @@ -190,6 +191,7 @@ static void config_parse_conf(const char* path,
>              conf_serv->conf.wait = TERMINATE;
>          }
>      }
> +    fclose(f);
>  }
>  
>  
> -- 
> 1.6.3.3
> 
> _______________________________________________
> tyndur-devel mailing list
> tyndur-devel@xxxxxxxxxx
> http://list.tyndur.org/mailman/listinfo/tyndur-devel