Added
Link Here
|
1 |
--- dbus/dbus-sysdeps-unix.c 2018-08-02 19:13:02.000000000 +0300 |
2 |
+++ dbus/dbus-sysdeps-unix.c 2019-09-13 02:55:41.904210000 +0300 |
3 |
@@ -4791,7 +4791,11 @@ |
4 |
void |
5 |
_dbus_close_all (void) |
6 |
{ |
7 |
+#ifdef __FreeBSD__ |
8 |
+ closefrom(3); |
9 |
+#else |
10 |
act_on_fds_3_and_up (close_ignore_error); |
11 |
+#endif |
12 |
} |
13 |
|
14 |
/** |
15 |
@@ -4801,7 +4805,11 @@ |
16 |
void |
17 |
_dbus_fd_set_all_close_on_exec (void) |
18 |
{ |
19 |
+#ifdef CLOSE_RANGE_CLOEXEC |
20 |
+ close_range(3, ~0U, CLOSE_RANGE_CLOEXEC); |
21 |
+#else |
22 |
act_on_fds_3_and_up (_dbus_fd_set_close_on_exec); |
23 |
+#endif |
24 |
} |
25 |
|
26 |
/** |