bugGNU nano - Bugs: bug #61235, with --backup, saving to a fifo...

 
 

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

bug #61235: with --backup, saving to a fifo will hang

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 27 Sep 2021 03:07:29 PM UTC
   
 
Severity:  5 - Blocker Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 07 Oct 2021 07:33:44 AM UTC, comment #2: 

Released in nano-5.9.

Benno Schulenberg <bens>
Group administrator
Tue 28 Sep 2021 08:19:12 AM UTC, comment #1: 

Fixed in git, commit bb3d3677, by not making a backup when the file is a fifo.

Benno Schulenberg <bens>
Group administrator
Mon 27 Sep 2021 03:07:29 PM UTC, original submission:  

To reproduce, run in one terminal:

mkfifo apipe
echo words >apipe

In a second terminal run:

src/nano --ignore --backup apipe

Type: blabla ^S

See that nano says "[ Making backup... ]", and that it will never get any further (because it cannot make a copy of the fifo's contents -- unless another process writes something more to the fifo).  Ouch!

Expected behavior: when editing a special file like a fifo, nano should not be trying to make any backup.

(Bug was found because this morning I played a bit with backup files, and then this afternoon the report from AndrĂ© Kugland in bug #612234 arrived on the mailing list, and I realized that --backup might cause additional problems.)

Benno Schulenberg <bens>
Group 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-07 bens Open/ClosedOpen Closed
    2021-09-28 bens Summarywhen saving to a fifo with --backup, nano hangs with --backup, saving to a fifo will hang
    2021-09-28 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code