From: SeulKi Shin <sskcorea@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: SeulKi Shin <sskcorea@gmail.com>
Subject: [PATCH] attrib/interactive: fix duplicate close
Date: Thu, 11 Aug 2016 14:04:00 +0900 [thread overview]
Message-ID: <20160811050400.3900-1-sskcorea@gmail.com> (raw)
This patch removes following warning message when gatttool exits
interactive mode.
(gatttool:457): GLib-WARNING **: Invalid file descriptor.
Since g_attrib_unref closes GIOChannel's fd g_io_channel_shutdown should
not be called here. This is because GAttrib is always created with "close on
unref" flag.
Signed-off-by: SeulKi Shin <sskcorea@gmail.com>
---
attrib/interactive.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/attrib/interactive.c b/attrib/interactive.c
index 7d4786a..4c48ca9 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -192,7 +192,6 @@ static void disconnect_io()
attrib = NULL;
opt_mtu = 0;
- g_io_channel_shutdown(iochannel, FALSE, NULL);
g_io_channel_unref(iochannel);
iochannel = NULL;
--
2.9.2.windows.1
reply other threads:[~2016-08-11 5:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160811050400.3900-1-sskcorea@gmail.com \
--to=sskcorea@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.