* Initialize signal state for process 0; * set to ignore signals that are ignored by default. */
| 943 | * set to ignore signals that are ignored by default. |
| 944 | */ |
| 945 | void |
| 946 | siginit(struct proc *p) |
| 947 | { |
| 948 | int i; |
| 949 | struct sigacts *ps; |
| 950 | |
| 951 | PROC_LOCK(p); |
| 952 | ps = p->p_sigacts; |
| 953 | mtx_lock(&ps->ps_mtx); |
| 954 | for (i = 1; i <= NSIG; i++) { |
| 955 | if (sigprop(i) & SIGPROP_IGNORE && i != SIGCONT) { |
| 956 | SIGADDSET(ps->ps_sigignore, i); |
| 957 | } |
| 958 | } |
| 959 | mtx_unlock(&ps->ps_mtx); |
| 960 | PROC_UNLOCK(p); |
| 961 | } |
| 962 | |
| 963 | /* |
| 964 | * Reset specified signal to the default disposition. |
no test coverage detected