Fixed possible infinite loop

Fixed possible infinite loop
This commit is contained in:
zbstao
2022-02-15 09:41:21 +08:00
parent 82b1aab9ba
commit ff39ce719e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ sig_sesman_session_end(int sig)
session_kill(pid);
}
}
while (pid >= 0);
while (pid > 0);
}
/******************************************************************************/
+1 -1
View File
@@ -163,7 +163,7 @@ xrdp_shutdown(int sig)
static void
xrdp_child(int sig)
{
while (g_waitchild() >= 0)
while (g_waitchild() > 0)
{
}
}