Skip to content

feat: Make kill-timeout configurable#769

Open
CommanderRedYT wants to merge 2 commits intoprivatenumber:masterfrom
CommanderRedYT:feat/configurable-kill-timeout
Open

feat: Make kill-timeout configurable#769
CommanderRedYT wants to merge 2 commits intoprivatenumber:masterfrom
CommanderRedYT:feat/configurable-kill-timeout

Conversation

@CommanderRedYT
Copy link

Why I thought about this

My application registers custom handlers with calls like process.on('SIGINT'). In there, I am waiting to gracefully shutdown another process. This takes some time, sometimes more than 5 seconds. The idea is to have this configurable so that no SIGKILL is sent that breaks saving in the childprocess.

Description

This PR implements a new flag --kill-timeout <number> for the watch subcommand. The number is used in the timeout to change and possibly extend the grace period until the process is killed after sending the SIGINT.

I am happy to implement any feedback provided.

@niss36
Copy link

niss36 commented Feb 11, 2026

As mentioned in #469 this would be super helpful 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants