Mozilla-Ocho / llamafile

Distribute and run LLMs with a single file.

Home Page:https://llamafile.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APE child processes linger around when parent is SIGTERMed

tristandruyen opened this issue · comments

First of all, thank you for the excellent work on this project.

I'm currently using the standalone llamafile executable on Linux.

When sending SIGTERM to the llamafile process, the primary process terminates, but the associated APE child processes remains active.

In contrast, terminating the process via Ctrl+C from the CLI leads to proper cleanup of both the llamafile and APE child processes.

Could the signal handling be improved to ensure cleanup of all child processes on SIGTERM or is this intended behavior ?

I'm quite sure this was my own fault, please disregard.