From 20560b2ef4631b825dac860a207fa7c89aba0f85 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Fri, 15 Jun 2007 19:14:15 +0000 Subject: [PATCH] Do not break away from the loop on every error. It can cause situation when many threads die after one client death. svn path=/trunk/; revision=27193 --- reactos/subsystems/win32/csrss/api/wapi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/subsystems/win32/csrss/api/wapi.c b/reactos/subsystems/win32/csrss/api/wapi.c index 08ef04d4286..13b7a2ac572 100644 --- a/reactos/subsystems/win32/csrss/api/wapi.c +++ b/reactos/subsystems/win32/csrss/api/wapi.c @@ -216,6 +216,13 @@ ClientConnectionThread(HANDLE ServerPort) 0, &Reply->Header, &Request->Header); + /* Client died, continue */ + if (Status == STATUS_INVALID_CID) + { + Reply = NULL; + continue; + } + if (!NT_SUCCESS(Status)) { DPRINT1("NtReplyWaitReceivePort failed: %lx\n", Status);