| 464 | } |
| 465 | |
| 466 | void |
| 467 | proc_linkup(struct proc *p, struct thread *td) |
| 468 | { |
| 469 | |
| 470 | sigqueue_init(&p->p_sigqueue, p); |
| 471 | p->p_ksi = ksiginfo_alloc(1); |
| 472 | if (p->p_ksi != NULL) { |
| 473 | /* XXX p_ksi may be null if ksiginfo zone is not ready */ |
| 474 | p->p_ksi->ksi_flags = KSI_EXT | KSI_INS; |
| 475 | } |
| 476 | LIST_INIT(&p->p_mqnotifier); |
| 477 | p->p_numthreads = 0; |
| 478 | thread_link(td, p); |
| 479 | } |
| 480 | |
| 481 | extern int max_threads_per_proc; |
| 482 |
no test coverage detected