Angus Salkeld
b3ca71803a
Fix make distcheck
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-04-10 15:47:51 +10:00
Angus Salkeld
74bdd91798
Merge pull request #60 from t-matsuo/fix-makefile-of-tests
...
add file_change_bytes into check_PROGRAMS and fix a typo
2013-04-07 15:33:25 -07:00
Takatoshi MATSUO
6f7f25c1f9
add file_change_bytes into check_PROGRAMS and fix a typo
2013-04-07 21:52:12 +09:00
Angus Salkeld
7667536626
Deal better with corrupt blackbox files.
...
fixes #59
Thanks to Jan Friesse for the reproducer.
https://github.com/jfriesse/csts/blob/master/tests/fplay-segfault.sh
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-04-02 13:52:57 +11:00
Angus Salkeld
258e86583e
Merge pull request #58 from inouekazu/fix_connection_state_checking
...
IPC: fix the connection state checking
Make sure the case when qb_ipc_us_ready() returns 0 is handled.
2013-03-25 04:16:05 -07:00
Kazunori INOUE
1894470470
IPC: fix the connection state checking
2013-03-22 15:46:00 +09:00
Angus Salkeld
1c9104e334
LOG: copy the function/filename for dynamic callsites
...
callsites originate from the assumption that the function/filename/format
are all statically allocated. When moving to dynamic callsite we kept
this assumption. But people are now passing in function/file names that
later get free'd. So we need to make sure that they stay persistant by
allocating them ourselves.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-20 17:10:35 +11:00
Angus Salkeld
ffdc2d519a
Deal with /dev/shm issue on Travis builders
...
https://github.com/travis-ci/travis-cookbooks/issues/155
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-13 09:24:12 +11:00
Angus Salkeld
c445c06620
Properly discover SO_NOSIGPIPE and MSG_SIGNAL
...
bug #57
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-12 21:13:47 +11:00
Angus Salkeld
75a550d8d3
IPC: fix call to QB_SUN_LEN
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-12 20:45:47 +11:00
Angus Salkeld
c77c0a98ef
list: don't splice empty lists onto the head.
...
fixes bug #56
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-03-07 16:48:41 +11:00
Angus Salkeld
2125310c93
rpl_sem: make destroy more compliant
...
don't block completely on the sem_wait(), but chop the waits
into 1 sec blocks so the destroy can have an opertunity to complete.
fixes bug #55
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-19 12:40:06 +11:00
Angus Salkeld
ed5435f0dd
test: fix unused-but-set-variable warning
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-19 10:18:01 +11:00
Angus Salkeld
bd2355f8db
test: fix missing-format-attribute warning
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-19 10:18:01 +11:00
Angus Salkeld
6ba054713e
RB: make the "sem" abstraction into a notifier
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 23:25:10 +11:00
Angus Salkeld
59243fb68c
IPC: clean up the connection state checking
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 23:02:30 +11:00
Angus Salkeld
31d9f0900d
Use dgram sockets for message oriented communications
...
This is to prevent partial sends and gettting stuck in
retry loops.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
481bd0cf86
IPC: don't interpret EMSGSIZE and ENOMSG as a disconnect
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
3d7774816e
POLL: prevent a spin if the fd is not removed from the mainloop
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
2a03ea2af1
add TAGS and ~ files to .gitignore
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-18 20:51:33 +11:00
Angus Salkeld
a6797c5c19
docs: install qb-blackbox.8 if doxygen is not available.
...
fixes bug #54
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-13 15:45:40 +11:00
Angus Salkeld
9d2eca251b
IPC: seperate ipc_us.c into 2 files
...
Seperate into a setup file and a socket backend file, it was getting messy
and confusing. Also preparing for using DGRAM sockets.
This should not result in any logical changes.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-06 11:21:05 +11:00
Angus Salkeld
aa43bb94d1
IPC: move utility functions to unix.c
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-06 11:08:38 +11:00
Angus Salkeld
dde6a46a83
IPC: make sure we return a consistent error when the message is too big.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-25 11:20:19 +11:00
The Quarterback Library Release Team
848242a786
Bump the version to 0.14.4
...
Signed-off-by: The Quarterback Library Release Team <quarterback-devel@fedorahosted.org>
2013-01-17 14:06:48 +11:00
Angus Salkeld
45f181125c
LOG: prevent the last char of the blackbox message from getting lost.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-17 13:55:48 +11:00
Angus Salkeld
ca9d9dd31f
Example: make the blackbox example more practical.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-15 11:50:25 +11:00
Angus Salkeld
728dc0a7c0
Merge pull request #52 from miz-take/prototype
...
Add the processing which remove notifier at skiplist_destroy function
2013-01-14 14:17:52 -08:00
Takeshi MIZUTA
37a6e7a5f1
Add the processing which remove notifier at skiplist_destroy function
2013-01-15 01:57:29 +09:00
Angus Salkeld
c344ee1233
Merge pull request #51 from miz-take/prototype
...
Add the processing which remove hash node and notifier at hashtable_destroy function
2013-01-13 14:08:01 -08:00
Takeshi MIZUTA
c684cdb55e
Add the processing which remove hash node and notifier at hashtable_destroy function
2013-01-14 03:39:47 +09:00
Angus Salkeld
eceee03a7b
Merge pull request #50 from miz-take/prototype
...
Unify to QB_TRUE/QB_FALSE a boolean value
2013-01-10 15:35:30 -08:00
Takeshi MIZUTA
4d1a98ad76
Unify to QB_TRUE/QB_FALSE a boolean value
2013-01-11 02:01:06 +09:00
Angus Salkeld
db8337e0eb
Document the default prefix in INSTALL
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-10 17:10:37 +11:00
Angus Salkeld
c9920e909b
Merge pull request #49 from miz-take/prototype
...
Unify the list processing with qb_list function
2013-01-08 16:00:13 -08:00
Takeshi MIZUTA
96e504f305
Unify the list processing with qb_list function
2013-01-09 02:04:20 +09:00
Angus Salkeld
0e4a53acc3
Add travis link to the readme.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-08 12:40:58 +11:00
Angus Salkeld
a7be9f9607
Merge pull request #48 from miz-take/prototype
...
Fix return code which is an error occurred at pthread function
2013-01-06 02:30:31 -08:00
miz-take
d365310882
Fix return code which is an error occurred at pthread function
2013-01-06 03:08:33 +09:00
Angus Salkeld
fe0e9a61a9
TEST: add a progam to compare the speed of vsnprintf and qb_vsnprintf_serialize
...
On my system I get:
qb store] Duration: 8.289 OPs/sec: 1206381.250
snprintf] Duration: 16.712 OPs/sec: 598368.000
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-04 16:35:45 +11:00
Angus Salkeld
7b847a3b19
LOG: add a test for a padded hex int.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-04 15:56:59 +11:00
Angus Salkeld
185f9cff21
Fedora's splint has a strange syntax error, don't fail on it.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-04 15:56:02 +11:00
Angus Salkeld
739faa54fe
LOG: fix truncation in some messages that get padded.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-04 15:55:19 +11:00
Angus Salkeld
e07eccd6a6
Fix the blackbox formatter when specifing the string len/precision
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-12-19 10:51:54 +11:00
Angus Salkeld
aed8fe942e
Fix strlcpy and strlcat functions
...
These were not behaving as the man pages described.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-12-19 10:42:08 +11:00
Angus Salkeld
fe45c27ea6
IPC: don't over log on disconnect
...
Thanks grueni: https://github.com/asalkeld/libqb/pull/43
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-12-10 10:46:01 +11:00
Angus Salkeld
c69713e5f9
Make sure we don't use the format string whilst it is getting changed.
...
Just add a rwlock around the usage.
Move qb_log_format_set() to log_format.c to make this easier.
Fixes #45
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-12-10 10:32:31 +11:00
Angus Salkeld
813dfb5fd2
ptrie: deref the current node in trie_iter_free()
...
If free'ing the iterator before getting to the last
node make sure we de-ref the current node. Else we
will not be able to delete the node.
fixes #44
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-12-06 11:59:33 +11:00
Angus Salkeld
30a7871646
LOG: fix the format comparison to avoid generating multiple entries.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-11-29 17:31:05 +11:00
Angus Salkeld
a5795f7d45
LOG: set the return code when calloc fails
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-11-23 10:24:56 +11:00