diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2013-12-12 17:17:51 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-13 16:38:37 +0200 |
commit | 6a9ed0d6b3a0ac878b5b742455dea0744a63662e (patch) | |
tree | 5c17e8f68ff4e94561241f4f4bbea36db4010ee9 /android/socket.c | |
parent | 1c796532049643e7211016fe8d3697d0b0584602 (diff) | |
download | bluez-6a9ed0d6b3a0ac878b5b742455dea0744a63662e.tar.gz |
android/socket: Do not close fd on unref
We close file descriptors in cleanup_rfsock() and leaving the default
value gives us glib warnings if we close fd already and got G_IO_NVAL in
server_cb from bt_io.
Diffstat (limited to 'android/socket.c')
-rw-r--r-- | android/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/socket.c b/android/socket.c index 5e8f8e500..cee4b6eda 100644 --- a/android/socket.c +++ b/android/socket.c @@ -735,6 +735,7 @@ static void handle_listen(const void *buf, uint16_t len) rfsock->real_sock = g_io_channel_unix_get_fd(io); + g_io_channel_set_close_on_unref(io, FALSE); g_io_channel_unref(io); DBG("real_sock %d fd %d hal_fd %d", rfsock->real_sock, rfsock->fd, |