Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/tty.c
Show First 20 Lines • Show All 450 Lines • ▼ Show 20 Lines | for (;;) { | ||||
if (SIGISMEMBER(p->p_sigacts->ps_sigignore, sig) || | if (SIGISMEMBER(p->p_sigacts->ps_sigignore, sig) || | ||||
SIGISMEMBER(td->td_sigmask, sig)) { | SIGISMEMBER(td->td_sigmask, sig)) { | ||||
/* Only allow them in write()/ioctl(). */ | /* Only allow them in write()/ioctl(). */ | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
return (sig == SIGTTOU ? 0 : EIO); | return (sig == SIGTTOU ? 0 : EIO); | ||||
} | } | ||||
pg = p->p_pgrp; | pg = p->p_pgrp; | ||||
if (p->p_flag & P_PPWAIT || pg->pg_jobc == 0) { | if ((p->p_flag & P_PPWAIT) != 0 || pg->pg_jobc == 0) { | ||||
/* Don't allow the action to happen. */ | /* Don't allow the action to happen. */ | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
return (EIO); | return (EIO); | ||||
} | } | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
/* | /* | ||||
* Send the signal and sleep until we're the new | * Send the signal and sleep until we're the new | ||||
▲ Show 20 Lines • Show All 1,984 Lines • Show Last 20 Lines |