#6797 HIGH 8.2.0 (: rainbow-0.7.11 races against X startup

Zarro Boogs per Child bugtracker at laptop.org
Sun Aug 3 00:49:47 EDT 2008


#6797: rainbow-0.7.11 races against X startup
----------------------------+-----------------------------------------------
   Reporter:  mstone        |       Owner:  bobby               
       Type:  defect        |      Status:  assigned            
   Priority:  high          |   Milestone:  8.2.0 (was Update.2)
  Component:  security      |     Version:                      
 Resolution:                |    Keywords:  8.2.0:+             
Next_action:  add to build  |    Verified:  0                   
  Blockedby:                |    Blocking:  7395                
----------------------------+-----------------------------------------------

Comment(by mstone):

 Just in case we can't figure out how to make upstart dance to our tune,
 Albert suggested a couple of Unixy techniques for working out the issue:

 1. Have rainbow start X via 'clone(SIGKILL); exec(X)', then wait for
 XAUTHORITY to appear, then run normally. Rainbow will die when X does.

 2. Have xinit start Rainbow (need to be careful of xinit vs. its children)
 and use prctl(PR_SET_PDEATHSIG, SIGKILL, ...) to die when X does.

 3. Have rainbow become an X client via Xlib (libX11) which kills X clients
 when the X server dies.

 P.S. - The current experiment is with 'stop on stopping prefdm' or 'stop
 on stopped prefdm' and similar.

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


More information about the Bugs mailing list