Re: Forground process and background process

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

 



Zeeshan Ali wrote:
    Yeah i know what a background process is, but as told to you
before, it's a concept of shell and is not implemented by the
OS/kernel. By writing './my &' at the shell prompt, you are telling
shell to run my as a background process. The POSIX theory you refered
to doesn't refer to this kind of process as this process does have a
controlling terminal and can safely read/write from/to the terminal.

You're incorrect. Please, consult the POSIX specification before disseminating false statements.


Of all the process groups, associated with a controlling terminal, one is designated the foreground process group via a call to

      int tcsetpgrp (int fildes, pid_t pgid_id);

Members of the foreground process group are allowed to read/write to/from the controlling terminal. Members of the background process groups receive SIGTTIN/SIGTTOU signals, whose default action is to stop the process.

~velco

--
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