FreeBSD Bugzilla – Attachment 247139 Details for
Bug 240549
devel/dbus: Loops over all possible file descriptors (Use closefrom(2))
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
5dabf32dd3.patch (text/plain), 1.20 KB, created by
Ivan Rozhuk
on 2023-12-18 15:08:35 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2023-12-18 15:08:35 UTC
Size:
1.20 KB
patch
obsolete
>From 5dabf32dd3caa238c8d746ffae2cb062bf47c138 Mon Sep 17 00:00:00 2001 >From: Rozhuk Ivan <rozhuk.im@gmail.com> >Date: Mon, 18 Dec 2023 16:51:04 +0200 >Subject: [PATCH] devel/dbus: devel/dbus: Loops over all possible file > descriptors (Use close_range(2)) > >--- > .../dbus/files/patch-dbus_dbus-sysdeps-unix.c | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 devel/dbus/files/patch-dbus_dbus-sysdeps-unix.c > >diff --git a/devel/dbus/files/patch-dbus_dbus-sysdeps-unix.c b/devel/dbus/files/patch-dbus_dbus-sysdeps-unix.c >new file mode 100644 >index 000000000000..e0d53eec57c2 >--- /dev/null >+++ b/devel/dbus/files/patch-dbus_dbus-sysdeps-unix.c >@@ -0,0 +1,26 @@ >+--- dbus/dbus-sysdeps-unix.c 2018-08-02 19:13:02.000000000 +0300 >++++ dbus/dbus-sysdeps-unix.c 2019-09-13 02:55:41.904210000 +0300 >+@@ -4791,7 +4791,11 @@ >+ void >+ _dbus_close_all (void) >+ { >++#ifdef __FreeBSD__ >++ closefrom(3); >++#else >+ act_on_fds_3_and_up (close_ignore_error); >++#endif >+ } >+ >+ /** >+@@ -4801,7 +4805,11 @@ >+ void >+ _dbus_fd_set_all_close_on_exec (void) >+ { >++#ifdef CLOSE_RANGE_CLOEXEC >++ close_range(3, ~0U, CLOSE_RANGE_CLOEXEC); >++#else >+ act_on_fds_3_and_up (_dbus_fd_set_close_on_exec); >++#endif >+ } >+ >+ /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240549
:
207447
|
247139
|
247140