mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #1819] [MERGED] Ignore exception when attempting to kill ffmpeg that has exited #8908
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/1819
Author: @andrewrabert
Created: 9/30/2019
Status: ✅ Merged
Merged: 9/30/2019
Merged by: @joshuaboniface
Base:
master← Head:ffmpeg_kill📝 Commits (1)
fd1bdadIgnore exception when attempting to kill ffmpeg that has exited📊 Changes
1 file changed (+1 additions, -2 deletions)
View changed files
📝
MediaBrowser.Api/ApiEntryPoint.cs(+1 -2)📄 Description
Changes
A race condition where this code attempts to kill an already exited
ffmpeg process is possible. This results in unnecessary error logging.
This change replaces the generic exception handling with the above
mentioned exception. No log output is produced. Ignoring this exception seems safe per the docs https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.kill?view=netframework-4.8#System_Diagnostics_Process_Kill
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.