diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-01-15 10:17:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-01-15 10:17:26 +0000 |
commit | 5f1f0e22c3a4857e358bf6a888a9b6959f8c5f1b (patch) | |
tree | 2878021b62e2a13b3ff4ce11912c699b39fa2dab /src/sysmon | |
parent | 74f9d4c55e6163e795f5456934f32a507908590d (diff) | |
download | gnunet-5f1f0e22c3a4857e358bf6a888a9b6959f8c5f1b.tar.gz gnunet-5f1f0e22c3a4857e358bf6a888a9b6959f8c5f1b.zip |
fix
Diffstat (limited to 'src/sysmon')
-rw-r--r-- | src/sysmon/gnunet-service-sysmon.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/sysmon/gnunet-service-sysmon.c b/src/sysmon/gnunet-service-sysmon.c index 60d3eade5..6597319da 100644 --- a/src/sysmon/gnunet-service-sysmon.c +++ b/src/sysmon/gnunet-service-sysmon.c | |||
@@ -696,7 +696,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
696 | 696 | ||
697 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "sysdaemon starting ... \n"); | 697 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "sysdaemon starting ... \n"); |
698 | 698 | ||
699 | if (GNUNET_SYSERR ==GNUNET_CONFIGURATION_get_value_filename (mycfg, "sysmon", "CFGFILE", &file)) | 699 | if (GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_filename (mycfg, "sysmon", "CFGFILE", &file)) |
700 | { | 700 | { |
701 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Sysmon configuration file not set, exit! \n"); | 701 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Sysmon configuration file not set, exit! \n"); |
702 | shutdown_now(); | 702 | shutdown_now(); |
@@ -712,15 +712,16 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
712 | ret = 1; | 712 | ret = 1; |
713 | return; | 713 | return; |
714 | } | 714 | } |
715 | if (GNUNET_SYSERR == GNUNET_CONFIGURATION_load (properties, file)) | 715 | if (GNUNET_YES == GNUNET_DISK_file_test(file)) |
716 | { | 716 | if (GNUNET_SYSERR == GNUNET_CONFIGURATION_load (properties, file)) |
717 | GNUNET_break (0); | 717 | { |
718 | GNUNET_CONFIGURATION_destroy (properties); | 718 | GNUNET_break (0); |
719 | GNUNET_free (file); | 719 | GNUNET_CONFIGURATION_destroy (properties); |
720 | ret = 1; | 720 | GNUNET_free (file); |
721 | shutdown_now(); | 721 | ret = 1; |
722 | return; | 722 | shutdown_now(); |
723 | } | 723 | return; |
724 | } | ||
724 | GNUNET_free (file); | 725 | GNUNET_free (file); |
725 | GNUNET_CONFIGURATION_iterate_sections (properties, &load_property, properties); | 726 | GNUNET_CONFIGURATION_iterate_sections (properties, &load_property, properties); |
726 | 727 | ||