bugGNU Screen - Bugs: bug #18400, Does not start up correctly on QNX...

 
 

bug #18400: Does not start up correctly on QNX 6

Submitted by:  None
Submitted on:  Tue 28 Nov 2006 10:36:57 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 3 - LowStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 15 Jun 2008 07:33:19 AM UTC, comment #1:

SIGHUP is sent to a process group when it loses its controlling terminal. Probably OpenPTY results in obtaining and closing a terminal that meanwhile becomes the controlling terminal? AIUI, this shouldn't happen under normal circumstances, though, because it should already have a controlling terminal (the one it was started from). The exception would be when using -d -m or the like.

It's hard to know which of the many versions of OpenPTY is being used for your system; but a better solution would be to prevent the new PTY from becoming the controlling terminal in the first place (equivalent to using O_NOCTTY in open, such as is done in at least one version of OpenPTY).

close() isn't happening in many of these, perhaps the HAVE_OPENPTY one is being used.

Anyway, if you ever return to this issue, try a solution that uses that approach.

Micah Cowan <micahcowan>
 Spam posted by an anonymous
Tue 28 Nov 2006 10:36:57 PM UTC, original submission:

When I run screen 4.0.2, it fails to start up correctly. The child process receives a SIGHUP when it calls close in OpenPTY on line 325 of pty.c. This SIGHUP is then relayed to the parent process, which causes it to terminate. I worked around this problem by adding

signal(SIGHUP, SIG_IGN);

before the close and

signal(SIGHUP, SigHup);

after it.

If you need to contact me, my email address is kraai@ftbfs.org.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by micahcowan (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Jun 2008 07:33:19 AM UTCmicahcowanPriority5 - Normal=>3 - Low
      StatusNone=>Need Info
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1