RE: svn commit: r37615 - trunk/subversion/libsvn_ra_svn
From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Thu, 7 May 2009 16:53:24 +0200
Hi Kyle,
(Sorry for top posting, but my mail client doesn't allow me to add something
Apr internally never checks a header before calling exit(). It just checks
Apr defines apr_proc_fork() as a portable way to call fork (declared in
Bert
From: Kyle McKay [mailto:mackyle_at_gmail.com]
On May 7, 2009, at 00:20, Bert Huijben <rhuijben_at_sharpsvn.net> wrote:
+static apr_status_t detach_child_cleanup(void *data)
+{
+#if APR_HAVE_STDLIB_H
+#if APR_HAVE_UNISTD_H
+#if APR_HAS_FORK
I don't think we need the two outer #if's. (We only need the check for
The exit function is declared in stdlib.h. It's not appropriate to call it
The fork function is declared in unistd.h, it's not appropriate to try and
For this patch it's also not appropriate to call fork if APR isn't using it
So the patch code is only compiled in if you have an stdlib.h (for exit())
Are you certain that there aren't some APR-supported and Subversion
These defines check whether a specific header file exist and not if
Actually the tests are there to avoid calling functions for which we haven't
Using these checks is most likely a dumb guess on whether this is running on
Bert
If stdlib.h is available everywhere, then why does apr define a test for it
Since apr does define a test for APR_HAVE_STDLIB_H, that suggests apr
Kyle
------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.