Running process without control terminal

Running process without control terminal

Post by AMA » Tue, 13 Apr 1999 04:00:00



What does it mean to say that a process X is running without control
terminal.  For example, ps -x shows processes running with or without
control terminal.  How does a process get in that state?
Thanks

--
Ayman Elsaedi
Georgia Institute of Technology, Atlanta Georgia, 30332

 
 
 

Running process without control terminal

Post by Peter Samuels » Tue, 13 Apr 1999 04:00:00



Quote:> What does it mean to say that a process X is running without control
> terminal.  For example, ps -x shows processes running with or without
> control terminal.  How does a process get in that state?

A few thoughts:

- Did `ps' warn you about obsolete usage? (:
- This is not a Linux question, it is a Unix question.  APUE[1] is
  always good for this sort of thing.  Buy it.  Read it.
- It got into that state either by inheriting no controlling terminal
  or by divorcing itself from one.  The TIOCNOTTY ioctl is one popular
  way of achieving this; again, see APUE.

--
Peter Samuelson
<sampo.creighton.edu!psamuels>

[1] Advanced Programming in the Unix Environment by W. Richard
    Stevens.  Has chapters on most beginning-to-intermediate Unix
    programming topics, including a nice long one on the horrors of
    Unix terminal handling.