On Mon, 22 Nov 2004 12:45:09 +0200, Momchil Velikov > See drivers/char/tty_io.c, e.g. tty_check_change function > Search for kill_pg and/or SIGTTOU and/or SIGTTIN. > > ~velco > I understood like this. The current terminals inode->private_data gives the terminal structure. If the process group id of the process is equal to the controlling group of that tty, then it is a foreground process. Is it correct? -- Manish Regmi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/