vene fix notify window while its visible
This commit is contained in:
@@ -105,17 +105,17 @@ extern "C"
|
||||
time_point<system_clock> now = system_clock::now();
|
||||
if(has_child && check_exited(child))
|
||||
{
|
||||
// Clean up all zombies
|
||||
while (waitpid(-1, nullptr, WNOHANG) > 0);
|
||||
|
||||
has_child = false;
|
||||
updatestatus();
|
||||
next_update = now + 5s;
|
||||
next_update = now + 10s;
|
||||
}
|
||||
else if(now > next_update)
|
||||
{
|
||||
// Clean up all zombies
|
||||
while (waitpid(-1, nullptr, WNOHANG) > 0);
|
||||
|
||||
updatestatus();
|
||||
next_update = now + 5s;
|
||||
next_update = now + 10s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user