diff options
author | Aryaman Gupta <aryaman.gupta@windriver.com> | 2022-06-29 16:08:20 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-30 10:54:44 +0100 |
commit | 643653160cd77d346cdc9b9ec25c7212c7dfe176 (patch) | |
tree | e6bc5d13cb1fa2ed8f2af42b5cb9065a825de114 /meta/recipes-graphics/pong-clock/pong-clock | |
parent | 2b76c8e5fc8802bbe54371119e6bf6312bf2a8ec (diff) | |
download | openembedded-core-643653160cd77d346cdc9b9ec25c7212c7dfe176.tar.gz |
buildstats.py: close /proc/pressure/cpu file descriptor
Use python 'with' symantics to ensure that the /proc/pressure/cpu file
descriptor used in SystemStats init is closed. Previously, this would
lead to a single file descriptor being leaked. For example:
ResourceWarning: unclosed file <_io.BufferedReader name='/proc/pressure/cpu'>
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/pong-clock/pong-clock')
0 files changed, 0 insertions, 0 deletions