bugGNU Screen - Bugs: bug #27061, immediately-exiting programs lose...

 
 
Show feedback again

bug #27061: immediately-exiting programs lose output?

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Mon 20 Jul 2009 09:03:43 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: 0 - Hours

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 24 Jul 2009 01:53:04 PM UTC, comment #1:

It is a race condition.

screen has two ways to shut down a window.
a) when the window filedescriptor signals eof in select().
b) when wait() returns the pid of the window process.

Whatever comes first kills the window or sends it into zombie mode.

I believe b) just should not shut down the window.
My assumption is that a) will happen shortly after b) in any case.

Juergen Weigert <jnweiger>
Project Administrator
Mon 20 Jul 2009 09:03:43 PM UTC, original submission:

with zombie-mode on, output seems to get truncated.

C-a : screen sh -c 'echo foo; echo bar; echo baz'

produces nothing, while

C-a : screen cat FILE

produces truncated output.

Also, exiting a shell with ^D produces a final prompt line of:

micah$ xit

where it should say "exit".

Micah Cowan <micahcowan>
Project Member

 

(Note: upload size limit is set to 512 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 jnweiger (Posted a comment)
  • -unavailable- added by micahcowan (Submitted the item)
  •  

    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 421 here (basic anti-spam test):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup