mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-03 06:40:04 -04:00
- Eek, gotta make it look the same as *nix! Windows will now print the process id of the new "forked" process.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7259 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
07120e5d4e
commit
7cca9f5d93
@ -348,6 +348,7 @@ void InspIRCd::QuickExit(int status)
|
|||||||
bool InspIRCd::DaemonSeed()
|
bool InspIRCd::DaemonSeed()
|
||||||
{
|
{
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
|
printf_c("InspIRCd Process ID: \033[1;32m%lu\033[0m\n", GetCurrentProcessId());
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
signal(SIGTERM, InspIRCd::QuickExit);
|
signal(SIGTERM, InspIRCd::QuickExit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user