]> git.karo-electronics.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:39:32 +0000 (08:39 -0700)
commitc08f21a0017df9e98861fe87bd4ad0a931fb5abb
treee2179d33d5967808b663b4c86871941943f1c632
parent115df7d533ba2c51cfe9f29cc5817bc85ad32df9
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