one too few arguments. Add special case for SIGINFO to call
ttyinfo().
SCCS-vsn: sys/kern/tty_pty.c 7.16
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tty_pty.c 7.15 (Berkeley) %G%
+ * @(#)tty_pty.c 7.16 (Berkeley) %G%
return(EINVAL);
if ((tp->t_lflag&NOFLSH) == 0)
ttyflush(tp, FREAD|FWRITE);
return(EINVAL);
if ((tp->t_lflag&NOFLSH) == 0)
ttyflush(tp, FREAD|FWRITE);
- pgsignal(tp->t_pgrp, *(unsigned int *)data);
+ pgsignal(tp->t_pgrp, *(unsigned int *)data, 1);
+ if ((*(unsigned int *)data == SIGINFO) &&
+ ((tp->t_lflag&NOKERNINFO) == 0))
+ ttyinfo(tp);
return(0);
}
} else if (pti->pt_flags & PF_TIOC) {
return(0);
}
} else if (pti->pt_flags & PF_TIOC) {