Then the process needs to open a terminal device. This action drops a previously available terminal if it exists. In order to create a controlling terminal, at first, the session leader (usually a shell process) starts a new session with setsid(). There may not be a controlling terminal for a session. tgid – the id of the foreground process group of the controlling terminal of the process.Ĭontrolling terminal, controlling process, foreground and background process groupsĪ controlling terminal is a terminal ( tty, pty, console, etc) that controls a session.(The minor device number is contained in the combination of bits 31 to 20 and 7 to 0 the major device number is in bits 15 to 8.) tty – the controlling terminal of the process.pgrp – the process group id of the process.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |