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>
Mon, 10 Sep 2012 23:43:05 +0000 (16:43 -0700)
commit6bb22fea25624ab593eee376fa5fb82d1b13f45a
treee7befe25e0264de757770c2065a2821b4422f4e5
parentd5ab482799e7c4c4b7c0aa67e8710dce28115d03
tools/hv: Fix exit() error code

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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c
This page took 0.024189 seconds and 5 git commands to generate.