From d8b2cad3771a09860e7be1726f67e684cf7caeec Mon Sep 17 00:00:00 2001 From: Rich Coe Date: Wed, 5 Dec 2007 19:31:07 +0000 Subject: [PATCH] OS: Connection: Don't shut down disappeared clients (bug #7876) If a client disappears in the middle of CheckConnections (presumably because its appgroup leader disappears), then don't attempt to shut it down a second time, when it's already vanished. --- os/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os/connection.c b/os/connection.c index 860404f6c..6012a8e81 100644 --- a/os/connection.c +++ b/os/connection.c @@ -1059,7 +1059,8 @@ CheckConnections(void) FD_SET(curclient, &tmask); r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); if (r < 0) - CloseDownClient(clients[ConnectionTranslation[curclient]]); + if (ConnectionTranslation[curclient] > 0) + CloseDownClient(clients[ConnectionTranslation[curclient]]); mask &= ~((fd_mask)1 << curoff); } }