From 75aad16a97587d7ff67204e1a23de5e34a8634cb Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 2 Mar 2006 18:24:09 +0000 Subject: Added a sleep on startup to stop it mucking up the display git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3436 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 9195399a4..c0cf997b0 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -589,7 +589,11 @@ int DaemonSeed (void) if ((childpid = fork ()) < 0) return (ERROR); else if (childpid > 0) + { + /* We wait a few seconds here, so that the shell prompt doesnt come back over the output */ + sleep(6); exit (0); + } setsid (); umask (007); printf("InspIRCd Process ID: \033[1;32m%lu\033[0m\n",(unsigned long)getpid()); -- cgit v1.2.3