]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use proper exit codes.
authorRoy Marples <roy@marples.name>
Thu, 17 Jul 2008 13:26:38 +0000 (13:26 +0000)
committerRoy Marples <roy@marples.name>
Thu, 17 Jul 2008 13:26:38 +0000 (13:26 +0000)
mk/os-Linux.mk

index 16f0f60510d70c8adc4b5eb23f3067151880bf2a..5d104df3e5d3e2db5bd65b9c9577d9e8371d0ecc 100644 (file)
@@ -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 <stdlib.h>\n\#include <unistd.h>\nint main (void) { pid_t pid = fork(); if (pid == -1) exit (-1); exit (0); }\n' > .fork.c; \
+               printf '\#include <stdlib.h>\n\#include <unistd.h>\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 ""; \