Brian Inglis wrote:
On 2025-04-27 12:22, Jon Turney wrote:
On 15/04/2025 10:02, Christian Franke wrote:
Hi Takashi,

Takashi Yano wrote:
Hi Christian,

On Fri, 11 Apr 2025 16:46:07 +0200
Christian Franke wrote:
In rare cases, '/bin/kill -f PID' hangs because kill(2) is always tried first. With this patch, this could be prevented with '/bin/kill -f -s -
PID'.

As it currently stands, the -f flag to kill seems a bit misdesigned, i.e. if the signal isn't SIGKILL, -f shouldn't be accepted?

Docs say -f uses Win32 interface so SIG... is irrelevant?


No, the current logic is:
If -f is specified, Win32 TerminateProcess() is called after 'kill(pid, SIG...)' failed or if the process does not terminate within 200ms after kill() succeeded.

--
Regards,
Christian

Reply via email to