mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Process: Clean up process table entry even when kill(2)
fails with ESRCH
(#10375)
* Icinga daemon leaves zombie processes on very busy system On a very heavily loaded system the process group kill can be delayed until after the regular TERM signal has caused the process to exit. In this situation the waitpid call is valid and reaps the zombie process that would otherwise be left behind. * Update AUTHORS file
This commit is contained in:
parent
5e902fe4a7
commit
63926c6e0d
1
AUTHORS
1
AUTHORS
@ -242,6 +242,7 @@ pv2b <pvz@pvz.pp.se>
|
|||||||
Ralph Breier <ralph.breier@roedl.com>
|
Ralph Breier <ralph.breier@roedl.com>
|
||||||
Reto Zeder <reto.zeder@arcade.ch>
|
Reto Zeder <reto.zeder@arcade.ch>
|
||||||
Ricardo Bartels <ricardo@bitchbrothers.com>
|
Ricardo Bartels <ricardo@bitchbrothers.com>
|
||||||
|
Richard Mortimer <richm@oldelvet.org.uk>
|
||||||
Rinck H. Sonnenberg <r.sonnenberg@netson.nl>
|
Rinck H. Sonnenberg <r.sonnenberg@netson.nl>
|
||||||
Robert Lindgren <robert.lindgren@gmail.com>
|
Robert Lindgren <robert.lindgren@gmail.com>
|
||||||
Robert Scheck <robert@fedoraproject.org>
|
Robert Scheck <robert@fedoraproject.org>
|
||||||
|
@ -1087,8 +1087,10 @@ bool Process::DoEvents()
|
|||||||
Log(LogWarning, "Process")
|
Log(LogWarning, "Process")
|
||||||
<< "Couldn't kill the process group " << m_PID << " (" << PrettyPrintArguments(m_Arguments)
|
<< "Couldn't kill the process group " << m_PID << " (" << PrettyPrintArguments(m_Arguments)
|
||||||
<< "): [errno " << error << "] " << strerror(error);
|
<< "): [errno " << error << "] " << strerror(error);
|
||||||
|
if (error != ESRCH) {
|
||||||
could_not_kill = true;
|
could_not_kill = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
is_timeout = true;
|
is_timeout = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user