diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-18 13:14:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-18 13:14:11 +0000 |
commit | 6bb948ae948778077df154ac5c3e8ec9e91e031b (patch) | |
tree | 637982e319de225d3cc310c3eb34e10a529356ef /src/inspircd_io.cpp | |
parent | 6ba4c5b9d334418c04c2ab6cc7af373dad434f9c (diff) |
Added PID reporting and testing before daemonize
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1120 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 523af8eb1..79e912175 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -109,6 +109,7 @@ int DaemonSeed (void) exit (0); setsid (); umask (007); + printf("InspIRCd PID: %d\n",getpid()); /* close stdin, stdout, stderr */ freopen("/dev/null","w",stdout); freopen("/dev/null","w",stderr); |