]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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:32:25 +0000 (08:32 -0700)
commitde5d66e635460e27d678df99f9cb97e263d3bbe7
tree734cc5bfc94431454dc01d72cfac3c041e1ca93c
parent37b6d804b3b5e2a255d2182ce00e1f25c568d7e9
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