[Tizen-submit] 9278: Changes to Tizen/bluetooth-frwk

noreply at tizen.org noreply at tizen.org
Mon Aug 26 08:11:49 GMT 2013


Hi,
Wu Zheng have made the following changes to bluetooth-frwk in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #9278

  submit:       Tizen:build/bluetooth-frwk(cleanup) -> Tizen


Message:
Submitter: Wu Zheng <wu.zheng at intel.com>
Comments: Fix permission denied on open dev node /dev/rfcomm
Git project: platform/core/connectivity/bluetooth-frwk
Tag: submit/tizen/20130826.082059
Commit: 0314464e4a82c081b5063649f3d5de42a977d434 Fix permission denied on open dev node /dev/rfcomm

State:   new        2013-08-26T01:08:21 tizenrobot
Comment: <no comment>
changes files:
--------------
--- bluetooth-frwk.changes
+++ bluetooth-frwk.changes
@@ -0,0 +1,3 @@
+* Fri Aug 23 2013 Victor Hakoun <victor.hakoun at eurogiciel.fr> submit/tizen/20130822.094138 at 03300bb
+- Fix permission denied on open dev node /dev/rfcomm
+

spec files:
-----------
--- bluetooth-frwk.spec
+++ bluetooth-frwk.spec
@@ -4,7 +4,7 @@
 Summary:    Bluetooth framework for BlueZ and Obexd
 Version:    0.2.57
 Release:    1
-VCS:        platform/core/connectivity/bluetooth-frwk#submit/tizen/20130822.094138-0-g2304f1c6bdc00a7db00eed1d325c061d7fd4f611
+VCS:        platform/core/connectivity/bluetooth-frwk#submit/tizen/20130826.082059-0-g0314464e4a82c081b5063649f3d5de42a977d434
 Group:      Connectivity/Bluetooth
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz

other changes:
--------------

++++++ bluetooth-frwk-0.2.57.tar.gz
--- bt-service/bt-service-rfcomm-client.c
+++ bt-service/bt-service-rfcomm-client.c
@@ -66,8 +66,14 @@
 static int __bt_rfcomm_open_socket(char *dev_node)
 {
 	int socket_fd;
+	int retryCounter = 0;
+	int MAX_RETRY = 3;
 
-	socket_fd = open(dev_node, O_RDWR | O_NOCTTY);
+	do {
+		socket_fd = open(dev_node, O_RDWR | O_NOCTTY);
+	    if (socket_fd < 0) retryCounter++;
+	    usleep(10*1000);
+	} while ((retryCounter < MAX_RETRY) && (socket_fd < 0));
 
 	if (socket_fd < 0) {
 		BT_ERR("\nCan't open TTY : %s(%d)",dev_node, errno);
--- packaging/bluetooth-frwk.changes
+++ packaging/bluetooth-frwk.changes
@@ -1,3 +1,6 @@
+* Fri Aug 23 2013 Victor Hakoun <victor.hakoun at eurogiciel.fr> submit/tizen/20130822.094138 at 03300bb
+- Fix permission denied on open dev node /dev/rfcomm
+
 * Wed Aug 21 2013 Victor Hakoun <victor.hakoun at eurogiciel.fr> submit/tizen/20130809.082724 at 2a3c24d
 - Start bt-service with systemd user with multi-user option
 


More information about the Tizen-submit mailing list