🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.internals
2 messages
2 total messages Started by Sivarama Subramanian Sat, 23 Jan 1993 18:53
Question about controlling processes
#2605
Author: Sivarama Subramanian
Date: Sat, 23 Jan 1993 18:53
22 lines
1365 bytes
Hi folks,

                                          forks
               forks                   |-------->Process3
   Process1 --------------> Process2-----
                                       |-------->Procees4
                                          forks
I want to make Process2 controlling process and let Process4
      belong to a backgroung process group. When Process2 exits
      Process3 should get SIGHUP signal. I want to test this
      scenerio.

Can anyone give me some insights?


1). What is a controlling process?
         My understanding is that the controlling process is the one
         which establishes the connection to the controlling terminal.
         Is it correct and if so how to make a connection to
         controlling terminal?
2) How to make a set of processes belong to foregound and background
    processes?
Re: Question about controlling processes
#2609
Author: Barry Margolin
Date: Mon, 25 Jan 1993 05:11
17 lines
1050 bytes
In article <C1BLso.220H@austin.ibm.com> subra@bynar.austin.ibm.com (Sivarama Subramanian) writes:
>1). What is a controlling process?
>2) How to make a set of processes belong to foregound and background
>    processes?

I haven't heard the term "controlling process".  There's a "controlling
terminal", and a process can be a "session leader" or "process group
leader", and these are related.

This stuff is described in great detail in the book "Advanced Programming
in the Unix Environment" by W. Richard Stevens.

-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads