Commit: 251a2b3ca4d31391dbd08d966909290c090f244a
Parent: b04bec273ec37bca1a46ab5f85ef0529a3940337
Author: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-11-21 17:15:24
Tree: 916b4f8b4f15f1ce5bb7279c479381ec2b91ce38

obexd: Fix fd which is left even after closing session A fd is duplicated if dbus type is unix fd, and then it is not closed even after the file is finished transporting. In the end obexd can not transport due to the limitation of open-able fd as below. Warning: invalid file descriptor 1031 in syscall fcntl(DUPFD_CLOEXEC)() FILE DESCRIPTORS: 1021 open at exit. Open pf-31 socket 1023: at 0x5061F1F: fcntl_common (fcntl.c:46) by 0x5061F1F: fcntl (fcntl.c:79) by 0x52A1C3D: _dbus_dup (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13) by 0x528C7B8: dbus_message_iter_get_basic (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13) by 0x149E04: profile_new_connection (bluetooth.c:136) by 0x18AAF2: process_message.isra.3 (object.c:259) by 0x18B364: generic_message (object.c:1079) by 0x5290FD2: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13) by 0x5282623: dbus_connection_dispatch (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.13) by 0x1852FF: message_dispatch (mainloop.c:72) by 0x5505E24: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1) by 0x55061EF: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1) by 0x5506501: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1)

Diffstat

M obexd/plugins/bluetooth.c | 5 ++++-
M obexd/src/obex.c | 4 +++-

2 files changed, 7 insertions(+), 2 deletions(-)

View Full Diff | Patch