tag | line | file | source code |
pgrp | 493 | fs/open.c | extern int kill_pg (int pgrp, int sig, int priv); |
pgrp | 502 | fs/open.c | if (tty && tty->pgrp > 0) |
pgrp | 503 | fs/open.c | kill_pg(tty->pgrp, SIGHUP, 0); |
pgrp | 548 | fs/open.c | tty->pgrp = -1; |
pgrp | 191 | fs/proc/array.c | (*p)->pgrp, |
pgrp | 195 | fs/proc/array.c | tty_table[(*p)->tty]->pgrp, |
pgrp | 164 | include/linux/sched.h | long pid,pgrp,session,leader; |
pgrp | 186 | include/linux/tty.h | int pgrp; |
pgrp | 287 | include/linux/tty.h | extern int is_orphaned_pgrp(int pgrp); |
pgrp | 290 | include/linux/tty.h | extern int kill_pg(int pgrp, int sig, int priv); |
pgrp | 400 | kernel/chr_drv/serial.c | if (info->tty->pgrp > 0) |
pgrp | 401 | kernel/chr_drv/serial.c | kill_pg(info->tty->pgrp,SIGINT,1); |
pgrp | 463 | kernel/chr_drv/serial.c | if (info->tty->pgrp > 0) |
pgrp | 464 | kernel/chr_drv/serial.c | kill_pg(info->tty->pgrp,SIGINT,1); |
pgrp | 471 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGINT, 1); |
pgrp | 477 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGQUIT, 1); |
pgrp | 483 | kernel/chr_drv/tty_io.c | if (!is_orphaned_pgrp(tty->pgrp)) |
pgrp | 484 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGTSTP, 1); |
pgrp | 764 | kernel/chr_drv/tty_io.c | if (MINOR(inode->i_rdev) && (tty->pgrp > 0) && |
pgrp | 766 | kernel/chr_drv/tty_io.c | (tty->pgrp != current->pgrp)) |
pgrp | 767 | kernel/chr_drv/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
pgrp | 770 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
pgrp | 797 | kernel/chr_drv/tty_io.c | if (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) && |
pgrp | 798 | kernel/chr_drv/tty_io.c | (current->tty == dev) && (tty->pgrp != current->pgrp)) { |
pgrp | 799 | kernel/chr_drv/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
pgrp | 802 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
pgrp | 1025 | kernel/chr_drv/tty_io.c | tty->pgrp = current->pgrp; |
pgrp | 1147 | kernel/chr_drv/tty_io.c | tty->pgrp = -1; |
pgrp | 19 | kernel/chr_drv/tty_ioctl.c | extern int session_of_pgrp(int pgrp); |
pgrp | 21 | kernel/chr_drv/tty_ioctl.c | extern int kill_pg(int pgrp, int sig, int priv); |
pgrp | 132 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
pgrp | 133 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
pgrp | 136 | kernel/chr_drv/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
pgrp | 182 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp > 0) && |
pgrp | 183 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
pgrp | 184 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
pgrp | 187 | kernel/chr_drv/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
pgrp | 238 | kernel/chr_drv/tty_ioctl.c | kill_pg(tty->pgrp, SIGWINCH, 1); |
pgrp | 262 | kernel/chr_drv/tty_ioctl.c | int pgrp; |
pgrp | 346 | kernel/chr_drv/tty_ioctl.c | tty->pgrp = current->pgrp; |
pgrp | 352 | kernel/chr_drv/tty_ioctl.c | put_fs_long(termios_tty->pgrp,(unsigned long *) arg); |
pgrp | 359 | kernel/chr_drv/tty_ioctl.c | pgrp=get_fs_long((unsigned long *) arg); |
pgrp | 360 | kernel/chr_drv/tty_ioctl.c | if (pgrp < 0) |
pgrp | 362 | kernel/chr_drv/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
pgrp | 364 | kernel/chr_drv/tty_ioctl.c | termios_tty->pgrp = pgrp; |
pgrp | 431 | kernel/chr_drv/tty_ioctl.c | if (tty->pgrp > 0) |
pgrp | 432 | kernel/chr_drv/tty_ioctl.c | kill_pg(tty->pgrp, SIGHUP, 0); |
pgrp | 433 | kernel/chr_drv/tty_ioctl.c | tty->pgrp = -1; |
pgrp | 174 | kernel/exit.c | int session_of_pgrp(int pgrp) |
pgrp | 183 | kernel/exit.c | if ((*p)->pgrp == pgrp) |
pgrp | 185 | kernel/exit.c | if ((*p)->pid == pgrp) |
pgrp | 195 | kernel/exit.c | int kill_pg(int pgrp, int sig, int priv) |
pgrp | 201 | kernel/exit.c | if (sig<0 || sig>32 || pgrp<=0) |
pgrp | 204 | kernel/exit.c | if (*p && (*p)->pgrp == pgrp) { |
pgrp | 258 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
pgrp | 282 | kernel/exit.c | int is_orphaned_pgrp(int pgrp) |
pgrp | 288 | kernel/exit.c | ((*p)->pgrp != pgrp) || |
pgrp | 292 | kernel/exit.c | if (((*p)->p_pptr->pgrp != pgrp) && |
pgrp | 299 | kernel/exit.c | static int has_stopped_jobs(int pgrp) |
pgrp | 304 | kernel/exit.c | if (!*p || (*p)->pgrp != pgrp) |
pgrp | 357 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
pgrp | 359 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
pgrp | 360 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
pgrp | 361 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
pgrp | 362 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
pgrp | 394 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
pgrp | 396 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
pgrp | 397 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
pgrp | 398 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
pgrp | 399 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
pgrp | 409 | kernel/exit.c | if (tty->pgrp > 0) |
pgrp | 410 | kernel/exit.c | kill_pg(tty->pgrp, SIGHUP, 1); |
pgrp | 411 | kernel/exit.c | tty->pgrp = -1; |
pgrp | 462 | kernel/exit.c | if (p->pgrp != current->pgrp) |
pgrp | 465 | kernel/exit.c | if (p->pgrp != -pid) |
pgrp | 54 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid) |
pgrp | 33 | kernel/sys.c | extern int session_of_pgrp(int pgrp); |
pgrp | 46 | kernel/sys.c | who = current->pgrp; |
pgrp | 47 | kernel/sys.c | return(p->pgrp == who); |
pgrp | 452 | kernel/sys.c | task[i]->pgrp = pgid; |
pgrp | 460 | kernel/sys.c | return current->pgrp; |
pgrp | 468 | kernel/sys.c | current->session = current->pgrp = current->pid; |
pgrp | 470 | kernel/sys.c | return current->pgrp; |