diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 2ec941708..9744adb68 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -453,31 +453,13 @@ InspIRCd::InspIRCd(int argc, char** argv) Log(DEFAULT,"Error killing parent process: %s",strerror(errno)); } - /*Log(DEBUG,"Fileno(stdin, stdout, stderr): %d %d %d", fileno(stdin), fileno(stdout), fileno(stderr));*/ - - if (stdin) - { - fclose(stdin); - closed++; - } - - if (stdout) - { - fclose(stdout); - closed++; - } - - if (stderr) - { - fclose(stderr); - closed++; - } - - Log(DEBUG,"%d system descriptors closed.", closed); + fclose(stdin); + fclose(stderr); + fclose(stdout); } printf("\nInspIRCd is now running!\n"); - Log(DEFAULT,"Startup complete, Initial TS=%d.", time(NULL)); + Log(DEFAULT,"Startup complete."); this->WritePID(Config->PID); } |