[PATCH] Cygwin: kill(1): skip kill(2) call if '-f -s -' is used
Jon Turney
jon.turney@dronecode.org.uk
Sun Apr 27 18:22:38 GMT 2025
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?
>> I wonder why kill(2) hangs. Do you have any idea?
I think there's something if we end up trying to do "Windows PID to
cygwin PID mapping", that requires the target PID to respond to us?
More information about the Cygwin-patches
mailing list