[haiku-bugs] Re: [Haiku] #6016: tcsetpgrp failed in terminal_inferior: Invalid Argument

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 18 May 2010 17:24:21 -0000

#6016: tcsetpgrp failed in terminal_inferior: Invalid Argument
------------------------+---------------------------------------------------
  Reporter:  rcrodgers  |       Owner:  nobody   
      Type:  bug        |      Status:  closed   
  Priority:  normal     |   Milestone:  R1       
 Component:  - General  |     Version:  R1/alpha2
Resolution:  invalid    |    Keywords:  tcsetpgrp
  Platform:  All        |   Blockedby:           
     Patch:  0          |    Blocking:           
------------------------+---------------------------------------------------

Comment(by bonefish):

 Just FYI, IIRC the reason for the error message is the following: gdb
 calls tcsetpgrp() with the process group of the debugged team. Since gdb's
 terminal is not the controlling terminal of the debugged team, the call
 (correctly) fails. So that always happens when a gdb is attached to a team
 (e.g. via the crash dialog). When a program is started by gdb (e.g. `gdb
 my_program`), the message won't be printed. The gdb port might be
 buggy/incomplete with respect to terminal handling, but this is utterly
 harmless and has nothing to do with any crashes.

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

Other related posts: