From 101307605118360efeccee1be1b26c18db92cdb1 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 29 Apr 2023 11:27:00 -0700 Subject: [PATCH] exif: prevent stay_open zombies Signed-off-by: Varun Patil --- CHANGELOG.md | 1 + lib/Exif.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aebb923a..afe2e1d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Feature**: Allow specifying precise coordinates while editing GPS metadata. - **Feature**: Whitelist x-msvideo mime type. - **Fix**: Improved handling of duplicate Live Photos. +- **Fix**: Prevent zombie processes when running in Docker. - **Breaking**: Recognize v3.8 (minimum) is now required. ## [v5.0.0] - 2023-04-16 diff --git a/lib/Exif.php b/lib/Exif.php index a7f790b0..e34125af 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -27,6 +27,7 @@ class Exif fclose(self::$staticPipes[1]); fclose(self::$staticPipes[2]); proc_terminate(self::$staticProc); + proc_close(self::$staticProc); self::$staticProc = null; self::$staticPipes = null; }