#5417 HIGH Update.: When can I stop the Acoustic Tape Measure activity?

Zarro Boogs per Child bugtracker at laptop.org
Mon Dec 10 17:20:14 EST 2007


#5417: When can I stop the Acoustic Tape Measure activity?
----------------------------------------+-----------------------------------
  Reporter:  Neptune                    |       Owner:  bemasc  
      Type:  defect                     |      Status:  new     
  Priority:  high                       |   Milestone:  Update.1
 Component:  acoustic-measure-activity  |     Version:          
Resolution:                             |    Keywords:          
  Verified:  0                          |  
----------------------------------------+-----------------------------------

Comment(by AlbertCahalan):

 There are ways to fix this without waiting for the Rainbow changes. Here
 are 3 that might be suitable.

 a. prctl(PR_SET_PDEATHSIG,SIGKILL,0,0,0) will give you SIGKILL when the
 parent dies. Do this in the child, between the fork and the exec.

 b. Have the parent be a session leader. (this should already be the case)
 Have the child be in that session, in the foreground process group. The
 child will get SIGHUP when the parent dies.

 c. Have the parent open a pty pair. The parent keeps open the master side.
 The child keeps open the slave side (only) and becomes a session leader in
 a session associated with that pty slave. The child will get SIGHUP when
 the pty master gets closed by the parent dying.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5417#comment:3>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list