diff options
| author | fortunate-lee <lijian01@kylinos.cn> | 2025-11-19 09:59:18 +0800 |
|---|---|---|
| committer | fortunate-lee <lijian01@kylinos.cn> | 2025-11-19 09:59:18 +0800 |
| commit | c62bb65ad321eebea18f32f5529f8f0a085e57e2 (patch) | |
| tree | c327f273ef88b9d4c8cc728c3634672edbb64036 /misc-utils/kill.c | |
| parent | b2f9be52153e16ad8a9704dc3781ae6408b3566f (diff) | |
| download | util-linux-c62bb65ad321eebea18f32f5529f8f0a085e57e2.tar.gz | |
kill: the situation where fd is opened but not closed
Signed-off-by: fortunate-lee <lijian01@kylinos.cn>
Diffstat (limited to 'misc-utils/kill.c')
| -rw-r--r-- | misc-utils/kill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/kill.c b/misc-utils/kill.c index df83548f61..245c3b6b7a 100644 --- a/misc-utils/kill.c +++ b/misc-utils/kill.c @@ -557,6 +557,9 @@ static int kill_with_timeout(const struct kill_control *ctl) err(EXIT_FAILURE, _("pidfd_send_signal() failed")); } } + + close(pfd); + return 0; } #endif |
