[haiku-bugs] Re: [Haiku] #7988: [Debugger] odd Terminal launch

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Thu, 15 Sep 2011 13:43:04 -0000

#7988: [Debugger] odd Terminal launch
-------------------------------------+----------------------------
   Reporter:  diver                  |      Owner:  phoudoin
       Type:  bug                    |     Status:  assigned
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by phoudoin):

 I guess indeed that the current code don't handle fine the fork/exec case:
 - Two Terminals teams is due to the fork
 - after the exec, the Terminal team is still there, but now running the
 shell: it's not detect by the code, as the team ID was already seen at
 previous update cycle.
 - The Terminal icon appearing as a generic app icon must be due that while
 the code don't detect that the team is not anymore running the same
 executable, the icon is retrieved *after* the team's command line has
 change, leading to... /bin/bash generic app icon.

 So, I guess I should redesign it a bit in order to handle the fork/exec
 case, indeed.
 I fear Process Controller teams menu could suffer the same issue here,
 BTW.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7988#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: