Fix some usability issues

1) Prohibit re-granting an already granted ticket.
2) Revoke command will be waiting until the operation was executed.
3) Improve log output for connect_nonb function.

Signed-off-by: Dongmao Zhang <dmzhang@suse.com>
Code cleanup and trivial fix

1) Keep 8-char-indent coding style
2) Remove unnecessary empty lines
3) Add missing header file

Signed-off-by: Jiaju Zhang <jjzhang@suse.de>
Remove "-f" option in grant and revoke commands

The "-f" option in grant and revoke commands had intended to provide
a method to bypass the paxos algorithm hence provide the user a totally
manual way to manage the ticket. However, because the usage of "-f"
often confused the user and also crm_ticket commmand in pacemaker can
provide the same functionality, so remove the "-f" option now.

Signed-off-by: Jiaju Zhang <jjzhang@suse.de>
When a expire was not set on a ticket, made modifications to use the default value.
memory leak of proposer_propose and paxos_propose
modify gitignore for ignore cscope and ctags files
Add support for sync revoke of ticket

When revoke a ticket, we always need wait a long time (may be
DEFAULT_TICKET_EXPIRY sometimes) now. Revoke time can be greatly
shortened with this patch.

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Add judgment before use acceptor.plv

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Remove reject of paxos_msghdr

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Add error handling when call ops of p_op

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Add lease ownership checking when releasing the lease

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Get the highest ballot when catchup

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
Correct the return value when running grant/revoke command failed

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
booth 0.1.0

Signed-off-by: Jiaju Zhang <jjzhang@suse.de>
man pages: invoke help2man with -s 8

Invoke help2man with -s 8 so it actually builds section 8 man pages.
Without this flag, the .8 suffix isn't in line with the
files' actual contents.
Fixed:tcp listener error and trivial fix
build: don't uselessly link against dl and rt libraries

dpkg-shlibdeps reports boothd uses none of the symbols exported
by libdl and librt.

dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/booth/usr/sbin/boothd" were not uselessly linked against it (they use none of its symbols).
dpkg-shlibdeps: warning: dependency on librt.so.1 could be avoided if "debian/booth/usr/sbin/boothd" were not uselessly linked against it (they use none of its symbols).
build: simplify check for glib2

Instead of hand-crafting a pkg-config check, just use the
PKG_CHECK_MODULES autoconf macro.
build: use AM_CPPFLAGS instead of INCLUDES

AM_CPPFLAGS is preferred over INCLUDES:
http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
build: properly test for libplumb, remove useless -lplumbgpl

Add an AC_CHECK_LIB test for cl_log, autoconf automatically adds
this to LIBS. No need to explicitly specifiy -lplumbgpl.

Fixes Debian build warning:
dpkg-shlibdeps: warning: dependency on libplumbgpl.so.2 could be avoided if "debian/booth/usr/sbin/boothd" were not uselessly linked against it (they use none of its symbols).