Werk #6410 · Sep 28, 18
Determine the parent process more reliably
Previously, the parent process was determined by parsing /proc/{PID}/stat and columns where assumed to be separated by space. This was unreliable because the filename in the second column may contain a space as well. If omd was issued e.g. from tmux the process name "tmux: server" was used. This resulted in a traceback during e.g. omd rm. Now the psutil module is used to determine the parent process.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- OMD
- Versions:
- 1.6.0b1CommunityProUltimate + MT
- 1.5.0p6CommunityProUltimate + MT