diff options
Diffstat (limited to 'server/src/pracrod.cc')
-rw-r--r-- | server/src/pracrod.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/server/src/pracrod.cc b/server/src/pracrod.cc index 81acfbc..b68cf07 100644 --- a/server/src/pracrod.cc +++ b/server/src/pracrod.cc @@ -69,7 +69,7 @@ static const char version_str[] = ; static const char copyright_str[] = -"Copyright (C) 2006-2009 Bent Bisballe Nyeng - Aasimon.org.\n" +"Copyright (C) 2006-2012 Bent Bisballe Nyeng - Aasimon.org.\n" "This is free software. You may redistribute copies of it under the terms of\n" "the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.\n" "There is NO WARRANTY, to the extent permitted by law.\n" @@ -116,18 +116,12 @@ void childwait(int) } static FILE *logfp = stderr; -static std::string logfile; +std::string logfile; +bool logfile_reload = false; void reload(int) { - if(logfp != stderr) { - fclose(logfp); - logfp = fopen(logfile.c_str(), "a"); - if(!logfp) { - fprintf(stderr, "Could not write to logfile: '%s'\n", optarg); - logfp = stderr; - } - } + logfile_reload = true; } class PracroDaemon : public Daemon { |