Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_sig.c
Show First 20 Lines • Show All 3,788 Lines • ▼ Show 20 Lines | nosys(struct thread *td, struct nosys_args *args) | ||||
PROC_LOCK(p); | PROC_LOCK(p); | ||||
tdsignal(td, SIGSYS); | tdsignal(td, SIGSYS); | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
if (kern_lognosys == 1 || kern_lognosys == 3) { | if (kern_lognosys == 1 || kern_lognosys == 3) { | ||||
uprintf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm, | uprintf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm, | ||||
td->td_sa.code); | td->td_sa.code); | ||||
} | } | ||||
if (kern_lognosys == 2 || kern_lognosys == 3) { | if (kern_lognosys == 2 || kern_lognosys == 3 || | ||||
(p->p_pid == 1 && (kern_lognosys & 3) == 0)) { | |||||
printf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm, | printf("pid %d comm %s: nosys %d\n", p->p_pid, p->p_comm, | ||||
td->td_sa.code); | td->td_sa.code); | ||||
} | } | ||||
return (ENOSYS); | return (ENOSYS); | ||||
} | } | ||||
/* | /* | ||||
* Send a SIGIO or SIGURG signal to a process or process group using stored | * Send a SIGIO or SIGURG signal to a process or process group using stored | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |