🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.internals
Article #2604

Question about controlling processes

#2604
From: Sivarama Subramanian
Date: Sat, 23 Jan 1993 18:51
34 lines
1516 bytes
i folks,

Here is what is I am trying to do:
                                          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?

In a related note:

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?
I would appreciate your help.

Thank you



subra
subra@testserver.austin.ibm.com

~
Technical Details
Message-ID: <C1BLpn.146v@austin.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!bynar.austin.ibm.com!subra

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.internals
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!bynar.austin.ibm.com!subra
From: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Subject: Question about controlling processes 
Sender: news@austin.ibm.com (News id)
Message-ID: <C1BLpn.146v@austin.ibm.com>
Date: Sat, 23 Jan 1993 18:51:23 GMT
Reply-To: subra@bynar.austin.ibm.com (Sivarama Subramanian)
Organization: IBM Austin, TX
Lines: 34