Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 4
    All of which file descriptors? Every process has some open. Commented Apr 6, 2014 at 17:54
  • What are "all the open file descriptors"? 0, 1, and 2? Or do you have many more? If so, where did they come from? Commented Feb 6, 2019 at 15:00
  • Aren't the file descriptors closed automatically when the script finishes? Commented Oct 27, 2019 at 12:27
  • This is useful to know for the situation when you fork a shell-script, and thus need to close all the parents sockets. Commented Apr 7, 2021 at 8:13