ctdb-daemon: Return negative status only if there are known errors
authorAmitay Isaacs <amitay@gmail.com>
Thu, 23 Jan 2014 03:57:53 +0000 (14:57 +1100)
committerMartin Schwenke <martin@meltin.net>
Fri, 31 Jan 2014 04:57:49 +0000 (15:57 +1100)
commit1566790e5a738f12db1dfb519589c1842d74b8e5
treebae7218cff902da79e6261085ee052069917936d
parentb112a3317cbedc73a6e17b3f711fec84f0d41d4e
ctdb-daemon: Return negative status only if there are known errors

If event script does not exist or does not have execute permissions, then
return negative errno to distinguish from the exit errors of event script.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_event_helper.c