ESRCH from cr_cansignal() means that the target process should be not visible to the initiator. So do not report pids with ESRCH result. Noted by: markj
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/kern/kern_procctl.c | ||
|---|---|---|
| 270–274 | Looks wrong. If ESRCH is returned, this code will still proceed to pksignal(), whereas the purpose of cr_cansignal() returning ESRCH is exactly to avoid the target being signaled. | |
Comment Actions
Thank you. It looks right, I would add a short comment like /* Hide ESRCH errors to ensure that this function cannot be used as an oracle for process visibility. */