From: Roy Marples Date: Thu, 17 Jul 2008 13:26:38 +0000 (+0000) Subject: Use proper exit codes. X-Git-Tag: v4.0.2~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a07ea153ce28f3e3b85127314e9cd6ae7c9b7d5;p=thirdparty%2Fdhcpcd.git Use proper exit codes. --- diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk index 16f0f605..5d104df3 100644 --- a/mk/os-Linux.mk +++ b/mk/os-Linux.mk @@ -15,7 +15,7 @@ _HAVE_FORK_SH= if test "${HAVE_FORK}" = "yes"; then \ elif test -n "${HAVE_FORK}"; then \ echo "-DTHERE_IS_NO_FORK"; \ else \ - printf '\#include \n\#include \nint main (void) { pid_t pid = fork(); if (pid == -1) exit (-1); exit (0); }\n' > .fork.c; \ + printf '\#include \n\#include \nint main (void) { pid_t pid = fork(); if (pid == -1) exit (EXIT_FAILURE); exit (EXIT_SUCCESS); }\n' > .fork.c; \ ${CC} .fork.c -o .fork >/dev/null 2>&1; \ if ./.fork; then \ echo ""; \