bugGNU nano - Bugs: bug #57120, if creating a later pipe would...

 
 

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

bug #57120: if creating a later pipe would fail, earlier ones stay open

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 27 Oct 2019 10:29:58 AM UTC
   
 
Severity:  2 - Minor Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Mon 10 Feb 2020 12:19:02 PM UTC, comment #1: 

Too unlikely an issue, with probably unnoticeable impact.

Benno Schulenberg <bens>
Group administrator
Sun 27 Oct 2019 10:29:58 AM UTC, original submission:  

In do_int_speller() all three needed pipes are created up front, in a single statement.  But... if creation of the third pipe (the one for the output of 'uniq') would fail, the other two pipes (the ones for 'spell' and 'sort') would not be closed and would stay around as long as nano keeps running.  If the user types ^T several times in a row and each time the third call of pipe() would fail, it could easily exhaust the available file descriptors.

(This is a highly hypothetical problem, of course, so I'm not sure whether I want to fix it, also because it would make the code still more messy.)

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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-10 bens StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code