summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Suchang Woo [Mon, 12 Oct 2015 07:59:56 +0000 (16:59 +0900)]
daemon: fix USE_AFTER_FREE issue
Change-Id: I0ac80b247c38ced376a0fbf37d132247ef97bd9b
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 8 Oct 2015 12:04:33 +0000 (21:04 +0900)]
library: add doxygen comment
Change-Id: Idf93ccaecec6b30cb1f0d2dfd444e6609ea265f2
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Tue, 22 Sep 2015 01:31:01 +0000 (10:31 +0900)]
example: add example code using buxton APIs
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I72baca75a616b4b18957af1fd60155d9b9bb7957
Suchang Woo [Mon, 21 Sep 2015 05:28:36 +0000 (14:28 +0900)]
client, vconf-compat: remove undefined variable in link libraries
Change-Id: I04a7de59a988a298d232d7b02a5c561d2ff6bf84
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Mon, 21 Sep 2015 05:10:09 +0000 (14:10 +0900)]
common: remove {} in boilerplate notice
It looks like copy & paste mistake.
Change-Id: I6a3d8217fdef9e66dc7b5eaf378bc7e7f28bc585
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 18 Sep 2015 05:50:40 +0000 (14:50 +0900)]
common: change description of 'memory' layer
Change-Id: I69503d0edfa008dd0a9931b72357105ecbcb59a4
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 18 Sep 2015 05:49:17 +0000 (14:49 +0900)]
common: use systemd-tmpfiles to create /run/buxton2
Change-Id: I6dc30788be3c00748f1594ff0fb8d8a89e6c860f
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 10 Sep 2015 11:26:42 +0000 (20:26 +0900)]
library: add client mutex lock for multi-thread
For multi-thread, a mutex lock is added to the client library.
This patch is workaround. Because a function protected by a lock can
be reentered in a callback function. To prevent dead-lock, a mutex
lock should be unlocked when it calls a callback function.
Change-Id: Ic40a6ba0715c5f9bd9f24bc7fd03bc23f1f9519e
Suchang Woo [Thu, 3 Sep 2015 14:01:25 +0000 (23:01 +0900)]
common: recv() is called only in mutex locked for multi-thread
Even the single type message should be received in mutex locked state.
Change-Id: I1656e5d4d9229a0589e271de756d86bebd894ac7
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Wed, 2 Sep 2015 08:02:50 +0000 (17:02 +0900)]
library: insert request info to hash table before sending request
In multi-thread context, a response can be received before inserting
request info to hash table. In that case, the response is dropped
and it makes timeout of the request.
To prevent a response drop and timeout, request info should be inserted
before sending request to Buxton daemon.
Change-Id: I4663f206c62138fc6076d8286922d29bd814a752
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 14 Aug 2015 10:29:06 +0000 (19:29 +0900)]
common: fix compile warning message
Change-Id: I562044593e56ef1fb195099f6576a20185efb515
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 14 Aug 2015 10:18:56 +0000 (19:18 +0900)]
common: set send timeout
If the receiver is blocked, Buxton daemon also can be blocked.
To prevent blocking, timeout argument in poll() is set.
Change-Id: I42cc6d8ba18cffebdc9eac6bab74bf3f56ecf24f
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Tue, 11 Aug 2015 01:27:54 +0000 (10:27 +0900)]
common: prevent invalid access
Change-Id: I22a80a4a7afa628e7ca73f28206230b307c8c5ea
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Tue, 11 Aug 2015 01:27:34 +0000 (10:27 +0900)]
daemon: fix copy & paste mistake
Change-Id: Ie70805565a04cdca4914d6a8b3be9e52dc4f8254
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Mon, 10 Aug 2015 13:24:04 +0000 (22:24 +0900)]
library: remove request in hash table on timeout
Change-Id: I91732c69bc7dec2d26c7fc488a2642e073ad3763
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 7 Aug 2015 11:13:09 +0000 (20:13 +0900)]
common: enable assert() and leave more detail error log
Change-Id: I3c2b7ffd056e42b3adc4937aface46af51056ccd
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Wed, 29 Jul 2015 11:21:06 +0000 (20:21 +0900)]
daemon: fix infinite loop caused by SIGPIPE
If bxt_err() makes SIGPIPE, Buxton daemon falls into infinite loop
because bxt_err() is also used in signalfd callback when SIGPIPE is
received.
bxt_err() can makes SIGPIPE if Buxton daemon is launched by systemd
and stderr is redirected to systemd-journal socket.
Change-Id: I112079fdf3c3548f7b0667b595cbd79e985c4d64
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Tue, 28 Jul 2015 12:49:53 +0000 (21:49 +0900)]
library: destroy hash table after client socket has been closed
If the socket is not closed, even during free_client() a receive
callback(recv_cb()) can be invoked by receiving data from socket.
If recv_cb() is invoked after destroying the hash table, the destroyed
hash table is accessed and segfault is occured.
To prevent the segfault, the hash table should be destroyed after
the socket has been closed.
Change-Id: Ifa59608350a281fc8988042482bdd025b8cc6d59
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Mon, 27 Jul 2015 11:43:25 +0000 (20:43 +0900)]
common: add message header to enhance exception handling
In the previous implementation, fragmented message had no header. If
a message was sent by thread during sending fragmented messages, a
receiver cannot distinguish a single message from fragmented messages.
Adding header to every message, a receiver can distinguish
messages.
Change-Id: I14d0f8ff6b0c0f9d3cf55ac9046da1d1ad8b654c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Wed, 22 Jul 2015 12:20:02 +0000 (21:20 +0900)]
Unset transmutable in /var/lib/buxton2
Change-Id: I85db289998af0a9013aa714591e46eaab2f0ced5
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Wed, 22 Jul 2015 12:19:01 +0000 (21:19 +0900)]
library: fix library name in buxton2.pc
Change-Id: I3461caf8eb255c77424671c36920fa3ec24d1d4e
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Wed, 22 Jul 2015 11:48:33 +0000 (20:48 +0900)]
daemon: stop calling accept() when accept returns EMFILE
When the number of open files exceed the maximum number(usually, 1024),
accept() returns EMFILE (Too many open files). and, it is continued
until the number of open files go below the maximum value.
So, stop calling accept() on EMFILE. and, resume it when a client is
closed.
Change-Id: Ie8f3bfce3506e4ab56e3e8d37bbd573ddfd4685c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Sat, 18 Jul 2015 09:57:19 +0000 (18:57 +0900)]
library: add mutex lock for multi-thread
Change-Id: If1c10261f8e4645b8d9cc14283d24dabd6280445
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 13:04:01 +0000 (22:04 +0900)]
vconf-compat: fix keynode unknown type
In vconf_keylist_add_str() keynode's type is not set.
Setting the type of keynode is added.
Change-Id: I8072749ae7f4225efadbc894b0799585937142f7
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 12:02:40 +0000 (21:02 +0900)]
common: fix segfault issue
When vconf APIs is invoked in callback function, client's receive buffer
which is already full is used again. This makes an abnormal state.
Before invoking callback function, full buffer should be removed from
receive buffer list.
Change-Id: Ie47cca364dfc03fde14aad3e7d156b394cf0a675
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 10:04:17 +0000 (19:04 +0900)]
vconf-compat: add brief comments of keylist APIs
Change-Id: I031d5dccd9c1ceef3fa966bda929f347ccd65545
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 10:01:23 +0000 (19:01 +0900)]
vconf-compat: fix managing the list in keylist struct
- Add codes to append keynode to the list
- Reset list after all the list elements are freed
Change-Id: Iba1726e86f20838ca3ad93eb562de37c1dafdee0
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 09:59:56 +0000 (18:59 +0900)]
vconf-compat: add vconf-devel and vconf-keys-devel to the provides tag
Change-Id: Iecd5bd8e1b256958475f1702cee8f5ac7ee6b770
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Fri, 17 Jul 2015 03:23:10 +0000 (12:23 +0900)]
vconf-compat: add keylist APIs
Change-Id: I752303a5914e935ffbb9a06577ef60cdfdc0e31c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 13:06:57 +0000 (22:06 +0900)]
vconf-compat: add vconf_get_ext_errno
Change-Id: I1b04c6c3d8e785df6eb319e90aa34967c2253530
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 12:26:14 +0000 (21:26 +0900)]
vconf-compat: change include files form from angle-bracket to quoted
Change-Id: I1e470525a5c7eeb4a59f55775f2c070c3a3fe424
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 11:43:29 +0000 (20:43 +0900)]
Turn on Buxton-Cynara permissive mode
Change-Id: Ie6107a2551e7e8090b83600a3d04e4bf5f645691
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 11:38:31 +0000 (20:38 +0900)]
vconf-compat: add vconf_get_dbl, vconf_set_dbl
Change-Id: I6a52f9c89f6738d51ad5f1d5a97e321c7049325c
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 11:09:25 +0000 (20:09 +0900)]
Workaround: add glib-2.0 requires for preventing build break
Change-Id: I045d4fe128273868630fe0334b2800a57286716a
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 10:52:03 +0000 (19:52 +0900)]
Add missing requires
vconf-compat-devel requires vconf-internal-keys-devel package
Change-Id: Ic029341f12d0c250d3576ac16346d5e41fb591f1
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Suchang Woo [Thu, 16 Jul 2015 08:12:54 +0000 (17:12 +0900)]
Initial import
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
KyungMi Lee [Thu, 16 Jul 2015 07:42:50 +0000 (00:42 -0700)]
Initial empty repository