[PR #10187] [CLOSED] fix: ensure log file is properly closed after logging completes #44421

Closed
opened 2026-04-24 23:54:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10187
Author: @googs1025
Created: 4/9/2025
Status: Closed

Base: mainHead: log_goroutine


📝 Commits (1)

  • fa42642 fix: ensure log file is properly closed after logging completes

📊 Changes

1 file changed (+18 additions, -4 deletions)

View changed files

📝 app/lifecycle/server.go (+18 -4)

📄 Description

  • Introduced a new Goroutine to wait for stdout/stderr copying to finish before closing the log file (shouldn't call Close twice).
  • Ensured proper resource cleanup in case of early termination.

🔄 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/ollama/ollama/pull/10187 **Author:** [@googs1025](https://github.com/googs1025) **Created:** 4/9/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `log_goroutine` --- ### 📝 Commits (1) - [`fa42642`](https://github.com/ollama/ollama/commit/fa4264224aa920c54fc7fc3dfa29c5d1f095933a) fix: ensure log file is properly closed after logging completes ### 📊 Changes **1 file changed** (+18 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `app/lifecycle/server.go` (+18 -4) </details> ### 📄 Description - Introduced a new Goroutine to wait for stdout/stderr copying to finish before closing the log file (shouldn't call Close twice). - Ensured proper resource cleanup in case of early termination. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 23:54:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#44421