[PR #1819] [MERGED] Ignore exception when attempting to kill ffmpeg that has exited #8908

Closed
opened 2026-02-07 05:52:35 +03:00 by OVERLORD · 0 comments
Owner

📋 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: masterHead: ffmpeg_kill


📝 Commits (1)

  • fd1bdad Ignore 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/1819 **Author:** [@andrewrabert](https://github.com/andrewrabert) **Created:** 9/30/2019 **Status:** ✅ Merged **Merged:** 9/30/2019 **Merged by:** [@joshuaboniface](https://github.com/joshuaboniface) **Base:** `master` ← **Head:** `ffmpeg_kill` --- ### 📝 Commits (1) - [`fd1bdad`](https://github.com/jellyfin/jellyfin/commit/fd1bdad0e22715cb589d3bbee9ed9805989ac544) Ignore exception when attempting to kill ffmpeg that has exited ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Api/ApiEntryPoint.cs` (+1 -2) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 05:52:35 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#8908