Re: Syscall kill() can send signal to thread ID

From: Florian Weimer
Date: Fri Sep 23 2022 - 03:53:52 EST


> I don't quite understand what you mean, sorry. But if kill() returns
> -ESRCH for tid which is not equal to tgid, kill() can only send signal
> to thread group via main thread id, that is what BSD did and manual
> said. It seems not odd?

It's still odd because there's one TID per process that's valid for
kill by accident. That's all.

Thanks,
Florian