olopez32 / ganeti

Automatically exported from code.google.com/p/ganeti
0 stars 0 forks source link

Provide fallback for closing all file descriptors when forking jobs #800

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since there is no fully portable way how to list all open file descriptors, we 
currently use /proc/self/fd or /dev/fd. If it fails, we close nothing. We (as a 
fallback) try to get the maximum FD number and try to close all of them.

This only affects non-Linux distros.

Original issue reported on code.google.com by pud...@google.com on 15 Apr 2014 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by pud...@google.com on 15 Apr 2014 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by aeh...@google.com on 15 Oct 2014 at 9:16