tools/hv: Fix exit() error code
authorBen Hutchings <ben@decadent.org.uk>
Wed, 5 Sep 2012 21:37:36 +0000 (14:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Oct 2012 15:35:53 +0000 (08:35 -0700)
commit03a933bb92be85c1802e962e827814cc51f94766
tree09eea8f76c4785325c11621a1ce247589bcc2090
parent0e0ce0ff4bb573076bbe275d5665186533a20101
tools/hv: Fix exit() error code

commit 6bb22fea25624ab593eee376fa5fb82d1b13f45a upstream.

Linux native exit codes are 8-bit unsigned values.  exit(-1) results
in an exit code of 255, which is usually reserved for shells reporting
'command not found'.  Use the portable value EXIT_FAILURE.  (Not that
this matters much for a daemon.)

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c