Commit 612c0e7
committed
(FACT-3446) Call close(2) with Solaris FFI
Previously, when Facter ran on Solaris it would use shutdown(2) to
attempt to close open sockets. However, this would leak file descriptors
and occasionally cause an issue where the system would hit its maximum
open files.
This commit updates Facter to instead use close(2) on Solaris to ensure
that file descriptors are not leaked.1 parent cca2160 commit 612c0e7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments