git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug: pass ACL-initiated debug through execs
[exim.git]
/
src
/
src
/
child.c
diff --git
a/src/src/child.c
b/src/src/child.c
index 54583c3aeb1d9195963b3b9d930cba1a9c242126..4a262d623a2d19d40e3896561d22e421480a36ad 100644
(file)
--- a/
src/src/child.c
+++ b/
src/src/child.c
@@
-108,7
+108,17
@@
if (!minimal)
else
{
if (debug_selector != 0)
else
{
if (debug_selector != 0)
+ {
argv[n++] = string_sprintf("-d=0x%x", debug_selector);
argv[n++] = string_sprintf("-d=0x%x", debug_selector);
+ if (debug_fd > 2)
+ {
+ int flags = fcntl(debug_fd, F_GETFD);
+ if (flags != -1) (void)fcntl(debug_fd, F_SETFD, flags & ~FD_CLOEXEC);
+ close(2);
+ dup2(debug_fd, 2);
+ close(debug_fd);
+ }
+ }
}
DEBUG(D_any)
{
}
DEBUG(D_any)
{