[sheepdog] [PATCH v2] sheep: let sheep return correct exit status when locking a base directory fails
MORITA Kazutaka
morita.kazutaka at gmail.com
Tue May 14 02:52:25 CEST 2013
At Tue, 14 May 2013 05:05:36 +0900,
Hitoshi Mitake wrote:
>
> Currently, lock_and_daemon() always returns 0 as its exit
> status. But this behavior is confusing because users cannot detect
> errors during locking a base directory via the exit status. This patch
> modifies lock_and_daemon() for returning correct exit status.
>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
> v2: return correct error status when the second fork() fails
>
> sheep/sheep.c | 50 ++++++++++++++++++++++++++++++++++++++------------
> 1 files changed, 38 insertions(+), 12 deletions(-)
Applied, thanks!
Kazutaka
More information about the sheepdog
mailing list