ctdb-recovery: Use single char ASCII numbers for status from child
authorMartin Schwenke <martin@meltin.net>
Fri, 1 Apr 2016 03:35:15 +0000 (14:35 +1100)
committerAmitay Isaacs <amitay@samba.org>
Thu, 28 Apr 2016 07:39:16 +0000 (09:39 +0200)
commit14a2330692a4d2e0058e72f9ea8b1c61ed920344
treee67b2b7d80f116c181c946bdf43aeb016dd1b326
parent4842b6bb91f3f3b13f2433f222678f84832a29d2
ctdb-recovery: Use single char ASCII numbers for status from child

  '0' = Child took the mutex
  '1' = Unable to take mutex - contention
  '2' = Unable to take mutex - timeout
  '3' = Unable to take mutex - error

This is a straightforward API.  When the child is generalised to an
external helper then this makes it easier for a helper to be, for
example, a simple script.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_recover.c