Commit cedd9862 authored by Artur Bergman's avatar Artur Bergman

Apple has deprecated an old function in 10.5, go use launchd instead

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3983 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent eba1a431
......@@ -627,7 +627,7 @@ main(int argc, char * const *argv)
if (d_flag == 1)
DebugStunt();
if (d_flag < 2 && !F_flag)
AZ(daemon(1, d_flag));
AZ(inxorcise(1, d_flag));
if (d_flag == 1)
printf("%d\n", getpid());
......
......@@ -372,7 +372,7 @@ main(int argc, char **argv)
exit(1);
}
if (D_flag && daemon(0, 0) == -1) {
if (D_flag && inxorcise(0, 0) == -1) {
perror("daemon()");
if (pfh != NULL)
vpf_remove(pfh);
......
......@@ -569,7 +569,7 @@ main(int argc, char *argv[])
exit(1);
}
if (D_flag && daemon(0, 0) == -1) {
if (D_flag && inxorcise(0, 0) == -1) {
perror("daemon()");
if (pfh != NULL)
vpf_remove(pfh);
......
......@@ -126,3 +126,5 @@ do { \
lbv_assert(__func__, __FILE__, __LINE__, expl, errno, 3); \
abort(); \
} while (0)
int inxorcise(int nochdir, int noclose);
......@@ -14,6 +14,7 @@ libvarnish_la_SOURCES = \
cli.c \
cli_common.c \
flopen.c \
inxorcise.c \
num.c \
time.c \
tcp.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment