cantsend
if (!cantsend(p, t, SIGHUP))
if (p->p_detached || cantsend(p, t, SIGTTIN)) {
cantsend(p, t, SIGTTOU)) {