bugGNU Screen - Bugs: bug #26750, unsuccessful exit status when...

 
 

bug #26750: unsuccessful exit status when -list successfully matches a socket

Submitted by:  None
Submitted on:  Sun 07 Jun 2009 12:42:44 AM UTC  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: 4.3.0Planned 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.

 

Sat 05 Sep 2015 04:27:04 PM UTC, comment #1:

This is fixed from 4.3.0 release.

Amadeusz Sławiński <amade>
Project Administrator
Sun 07 Jun 2009 12:42:44 AM UTC, original submission:

When -list/-ls successfully matchs a socket, screen(1) still exits with status 1:

[jwm@boost:pts/5 ~> screen -list 5907.pts-0.boost
There is a screen on:
5907.pts-0.boost (04/08/2009 09:20:06 PM) (Attached)
1 Socket in /var/run/screen/S-jwm.

[jwm@boost:pts/5 ~> echo $?
1

Perhaps the success case needs to use Msg() instead?

if (lsflag)
{
int i, fo, oth;

#ifdef MULTIUSER
if (multi)
real_uid = multi_uid;
#endif
SET_GUID();
i = FindSocket((int *)NULL, &fo, &oth, SockMatch);
if (quietflag)
exit(8 + (fo ? ((oth || i) ? 2 : 1) : 0) + i);
if (fo == 0)
Panic(0, "No Sockets found in %s.\n", SockPath);
Panic(0, "%d Socket%s in %s.\n", fo, fo > 1 ? "s" : "", SockPath);
/* NOTREACHED */

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 amade (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
    Sat 05 Sep 2015 04:27:04 PM UTCamadeStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.0

    Back to the top


    Powered by Savane 3.1-cleanup1