]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Add test suites for edge cases and in the process, spot a crash in the new code and...
[user/henk/code/inspircd.git] / src / inspircd.cpp
index d152e5d1a24b934cd4c44fc464329fc95bda416d..97e2c77e352d9da2fecc4f477caaf606687b4484 100644 (file)
@@ -705,7 +705,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
                 * e.g. we are restarting, or being launched by cron. Dont kill parent, and dont
                 * close stdin/stdout
                 */
-               if (!do_nofork)
+               if ((!do_nofork) && (!do_testsuite))
                {
                        fclose(stdin);
                        fclose(stderr);