Re: Forground process and background process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux