* The knote may be attached to a different process, which may exit, * leaving nothing for the knote to be attached to. So when the process * exits, the knote is marked as DETACHED and also flagged as ONESHOT so * it will be deleted when read out. However, as part of the knote deletion, * this routine is called, so a check is needed to avoid actually performing * a detach, because the origin
| 479 | */ |
| 480 | /* XXX - move to kern_proc.c? */ |
| 481 | static void |
| 482 | filt_procdetach(struct knote *kn) |
| 483 | { |
| 484 | |
| 485 | knlist_remove(kn->kn_knlist, kn, 0); |
| 486 | kn->kn_ptr.p_proc = NULL; |
| 487 | } |
| 488 | |
| 489 | /* XXX - move to kern_proc.c? */ |
| 490 | static int |
nothing calls this directly
no test coverage detected