MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tty_signal_pgrp

Function tty_signal_pgrp

freebsd/kern/tty.c:1504–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1502}
1503
1504void
1505tty_signal_pgrp(struct tty *tp, int sig)
1506{
1507 ksiginfo_t ksi;
1508
1509 tty_assert_locked(tp);
1510 MPASS(sig >= 1 && sig < NSIG);
1511
1512 /* Make signals start output again. */
1513 tp->t_flags &= ~TF_STOPPED;
1514 tp->t_termios.c_lflag &= ~FLUSHO;
1515
1516 if (sig == SIGINFO && !(tp->t_termios.c_lflag & NOKERNINFO))
1517 tty_info(tp);
1518 if (tp->t_pgrp != NULL) {
1519 ksiginfo_init(&ksi);
1520 ksi.ksi_signo = sig;
1521 ksi.ksi_code = SI_KERNEL;
1522 PGRP_LOCK(tp->t_pgrp);
1523 pgsignal(tp->t_pgrp, sig, 1, &ksi);
1524 PGRP_UNLOCK(tp->t_pgrp);
1525 }
1526}
1527
1528void
1529tty_wakeup(struct tty *tp, int flags)

Callers 4

ptsdev_ioctlFunction · 0.85
ttydisc_rintFunction · 0.85
tty_set_winsizeFunction · 0.85
killjobcFunction · 0.85

Calls 2

tty_infoFunction · 0.85
pgsignalFunction · 0.85

Tested by

no test coverage detected