tag | line | file | source code |
pgrp | 437 | fs/open.c | extern int kill_pg (int pgrp, int sig, int priv); |
pgrp | 442 | fs/open.c | kill_pg(current->pgrp, SIGHUP, 0); |
pgrp | 488 | fs/open.c | tty->pgrp = -1; |
pgrp | 136 | include/linux/sched.h | long pid,pgrp,session,leader; |
pgrp | 178 | include/linux/tty.h | int pgrp; |
pgrp | 302 | include/linux/tty.h | extern int is_orphaned_pgrp(int pgrp); |
pgrp | 305 | include/linux/tty.h | extern int kill_pg(int pgrp, int sig, int priv); |
pgrp | 49 | kernel/chr_drv/pty.c | if (tty->link->pgrp > 0) |
pgrp | 50 | kernel/chr_drv/pty.c | kill_pg(tty->link->pgrp,SIGHUP,1); |
pgrp | 195 | kernel/chr_drv/serial.c | && info->tty->pgrp > 0) |
pgrp | 196 | kernel/chr_drv/serial.c | kill_pg(info->tty->pgrp,SIGHUP,1); |
pgrp | 221 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGINT, 1); |
pgrp | 227 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGQUIT, 1); |
pgrp | 233 | kernel/chr_drv/tty_io.c | if (!is_orphaned_pgrp(tty->pgrp)) |
pgrp | 234 | kernel/chr_drv/tty_io.c | kill_pg(tty->pgrp, SIGTSTP, 1); |
pgrp | 304 | kernel/chr_drv/tty_io.c | if ((tty->pgrp > 0) && |
pgrp | 306 | kernel/chr_drv/tty_io.c | (tty->pgrp != current->pgrp)) |
pgrp | 307 | kernel/chr_drv/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
pgrp | 310 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
pgrp | 435 | kernel/chr_drv/tty_io.c | if (L_TOSTOP(tty) && (tty->pgrp > 0) && |
pgrp | 436 | kernel/chr_drv/tty_io.c | (current->tty == channel) && (tty->pgrp != current->pgrp)) { |
pgrp | 437 | kernel/chr_drv/tty_io.c | if (is_orphaned_pgrp(tty->pgrp)) |
pgrp | 440 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
pgrp | 602 | kernel/chr_drv/tty_io.c | tty->pgrp = current->pgrp; |
pgrp | 732 | 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 | 126 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
pgrp | 127 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
pgrp | 130 | kernel/chr_drv/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
pgrp | 176 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp > 0) && |
pgrp | 177 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
pgrp | 178 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
pgrp | 181 | kernel/chr_drv/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
pgrp | 232 | kernel/chr_drv/tty_ioctl.c | kill_pg(tty->pgrp, SIGWINCH, 1); |
pgrp | 255 | kernel/chr_drv/tty_ioctl.c | int pgrp; |
pgrp | 333 | kernel/chr_drv/tty_ioctl.c | put_fs_long(tty->pgrp,(unsigned long *) arg); |
pgrp | 340 | kernel/chr_drv/tty_ioctl.c | pgrp=get_fs_long((unsigned long *) arg); |
pgrp | 341 | kernel/chr_drv/tty_ioctl.c | if (pgrp < 0) |
pgrp | 343 | kernel/chr_drv/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
pgrp | 345 | kernel/chr_drv/tty_ioctl.c | tty->pgrp = pgrp; |
pgrp | 405 | kernel/chr_drv/tty_ioctl.c | if (tty->pgrp > 0) |
pgrp | 406 | kernel/chr_drv/tty_ioctl.c | kill_pg(tty->pgrp, SIGHUP, 0); |
pgrp | 407 | kernel/chr_drv/tty_ioctl.c | tty->pgrp = -1; |
pgrp | 173 | kernel/exit.c | int session_of_pgrp(int pgrp) |
pgrp | 182 | kernel/exit.c | if ((*p)->pgrp == pgrp) |
pgrp | 184 | kernel/exit.c | if ((*p)->pid == pgrp) |
pgrp | 190 | kernel/exit.c | int kill_pg(int pgrp, int sig, int priv) |
pgrp | 196 | kernel/exit.c | if (sig<0 || sig>32 || pgrp<=0) |
pgrp | 199 | kernel/exit.c | if (*p && (*p)->pgrp == pgrp) { |
pgrp | 254 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
pgrp | 278 | kernel/exit.c | int is_orphaned_pgrp(int pgrp) |
pgrp | 284 | kernel/exit.c | ((*p)->pgrp != pgrp) || |
pgrp | 288 | kernel/exit.c | if (((*p)->p_pptr->pgrp != pgrp) && |
pgrp | 295 | kernel/exit.c | static int has_stopped_jobs(int pgrp) |
pgrp | 300 | kernel/exit.c | if (!*p || (*p)->pgrp != pgrp) |
pgrp | 353 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
pgrp | 355 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
pgrp | 356 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
pgrp | 357 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
pgrp | 358 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
pgrp | 390 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
pgrp | 392 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
pgrp | 393 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
pgrp | 394 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
pgrp | 395 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
pgrp | 404 | kernel/exit.c | if (tty->pgrp > 0) |
pgrp | 405 | kernel/exit.c | kill_pg(tty->pgrp, SIGHUP, 1); |
pgrp | 406 | kernel/exit.c | tty->pgrp = -1; |
pgrp | 456 | kernel/exit.c | if (p->pgrp != current->pgrp) |
pgrp | 459 | kernel/exit.c | if (p->pgrp != -pid) |
pgrp | 80 | 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 | 447 | kernel/sys.c | task[i]->pgrp = pgid; |
pgrp | 455 | kernel/sys.c | return current->pgrp; |
pgrp | 463 | kernel/sys.c | current->session = current->pgrp = current->pid; |
pgrp | 465 | kernel/sys.c | return current->pgrp; |