]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_namedpipe.cpp
Strip SUPPORT_IP6LINKS #define
[user/henk/code/inspircd.git] / win / inspircd_namedpipe.cpp
index 18ef9b9cb5805bdf7c9b653787b02b7418481204..93d7c423a1cbeb7690bebbf8674b7e9d23e72fd4 100644 (file)
@@ -25,14 +25,14 @@ void IPCThread::Run()
        {\r
                Pipe = CreateNamedPipe (Pipename,\r
                                        PIPE_ACCESS_DUPLEX, // read/write access\r
-                                        PIPE_TYPE_MESSAGE | // message type pipe\r
-                                        PIPE_READMODE_MESSAGE | // message-read mode\r
-                                        PIPE_WAIT, // blocking mode\r
-                                        PIPE_UNLIMITED_INSTANCES, // max. instances\r
-                                        MAXBUF, // output buffer size\r
-                                        MAXBUF, // input buffer size\r
-                                        1000, // client time-out\r
-                                        NULL); // no security attribute\r
+                                       PIPE_TYPE_MESSAGE | // message type pipe\r
+                                       PIPE_READMODE_MESSAGE | // message-read mode\r
+                                       PIPE_WAIT, // blocking mode\r
+                                       PIPE_UNLIMITED_INSTANCES, // max. instances\r
+                                       MAXBUF, // output buffer size\r
+                                       MAXBUF, // input buffer size\r
+                                       1000, // client time-out\r
+                                       NULL); // no security attribute\r
 \r
                if (Pipe == INVALID_HANDLE_VALUE)\r
                {\r
@@ -131,7 +131,7 @@ IPC::IPC(InspIRCd* Srv) : ServerInstance(Srv)
 {\r
        /* The IPC pipe is threaded */\r
        thread = new IPCThread(Srv);\r
-       Srv->Threads->Create(thread);\r
+       Srv->Threads->Start(thread);\r
 }\r
 \r
 void IPC::Check()\r
@@ -161,6 +161,12 @@ void IPC::Check()
                        thread->ClearStatus();\r
                        ServerInstance->Restart("Restarting due to command from GUI");\r
                break;\r
+               case '4':\r
+                       /* Toggle debug */\r
+                       thread->SetResult(0);\r
+                       thread->ClearStatus();\r
+                       ServerInstance->Config->forcedebug = !ServerInstance->Config->forcedebug;\r
+               break;\r
        }\r
 }\r
 \r
@@ -168,4 +174,4 @@ IPC::~IPC()
 {\r
        thread->SetExitFlag();\r
        delete thread;\r
-}
\ No newline at end of file
+}\r