DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25103>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25103 Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create ------- Additional Comments From [EMAIL PROTECTED] 2003-12-01 13:04 ------- What does truss -f show as the processing that happens in the new child after fork() but before reaching main() in the child? Just that we reached execve() and got no further? What if you add logic such as the following to apr_proc_create() so that we use an empty environment table instead of a NULL pointer when the caller passes in NULL? Does that help? Index: threadproc/unix/proc.c =================================================================== RCS file: /home/cvs/apr/threadproc/unix/proc.c,v retrieving revision 1.71 diff -u -r1.71 proc.c --- threadproc/unix/proc.c 6 Nov 2003 00:25:33 -0000 1.71 +++ threadproc/unix/proc.c 1 Dec 2003 13:02:59 -0000 @@ -320,6 +320,11 @@ apr_pool_t *pool) { int i; + const char * const empty_envp[] = {NULL}; + + if (!env) { + env = empty_envp; + } new->in = attr->parent_in; new->err = attr->parent_err; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
