bugGNU nano - Bugs: bug #59073, without --suspend, nano does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59073: without --suspend, nano does not resume properly from SIGSTOP

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 06 Sep 2020 05:44:08 PM UTC
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 07 Sep 2020 09:31:29 AM UTC, comment #1: 

Fixed in git, commit 0f7a309a , by always installing the SIGCONT handler.

Benno Schulenberg <bens>
Project Administrator
Sun 06 Sep 2020 05:44:08 PM UTC, original submission:  

To reproduce, run 'src/nano --ignore THANKS'.  Then, in a different terminal, do 'kill -SIGSTOP $(pidof nano)'.  Go back to the first terminal and type: fg <Enter>.  See that nano does not properly resume because the shell prompt and the echoed command stay on screen.  (Type ^X ^M to get out.)

Now run 'src/nano --ignore --suspend THANKS'.  Then do again 'kill -SIGSTOP $(pidof nano)' in the second terminal.  And in the first type again: fg <Enter>.  Hopla, the screen and the terminal are properly restored, nano is awake again.

The problem seems to be in signal_init(), where the SIGCONT handler gets installed only when --suspend is in effect.  :|  How silly.  Without --suspend, why only install a SIGSTP handler but not a SIGCONT handler?

Benno Schulenberg <bens>
Project Administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-08 bens Open/ClosedOpen Closed
    2020-09-07 bens StatusNone Fixed

    Back to the top


    Powered by Savane 3.9