[PR #3653] [MERGED] Terminate subprocess if receiving SIGINT or SIGTERM signals while model is loading #11234

Closed
opened 2026-04-12 23:25:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3653
Author: @jmorganca
Created: 4/15/2024
Status: Merged
Merged: 4/15/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/unload-close


📝 Commits (2)

  • 67ab3ab terminate subprocess if receiving SIGINT or SIGTERM signals while model is loading
  • 40d8e71 use unload in signal handler

📊 Changes

2 files changed (+23 additions, -32 deletions)

View changed files

📝 llm/server.go (+2 -13)
📝 server/routes.go (+21 -19)

📄 Description

No description provided


🔄 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/3653 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 4/15/2024 **Status:** ✅ Merged **Merged:** 4/15/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/unload-close` --- ### 📝 Commits (2) - [`67ab3ab`](https://github.com/ollama/ollama/commit/67ab3aba4d7b6ae9b6073ffae999d992a55c4d25) terminate subprocess if receiving `SIGINT` or `SIGTERM` signals while model is loading - [`40d8e71`](https://github.com/ollama/ollama/commit/40d8e7164b439a683cdd39464a09544ced549615) use `unload` in signal handler ### 📊 Changes **2 files changed** (+23 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+2 -13) 📝 `server/routes.go` (+21 -19) </details> ### 📄 Description _No description provided_ --- <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-12 23:25:04 -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#11234