diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-02 18:24:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-02 18:24:09 +0000 |
commit | 75aad16a97587d7ff67204e1a23de5e34a8634cb (patch) | |
tree | d450667b2215b4e968f48bab86be79f27ede4823 /src/inspircd_io.cpp | |
parent | c22eb39ad34f0fc929b2cd953f8dccdbea79a82e (diff) |
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
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |