diff options
author | Jeff Trawick <trawick@apache.org> | 2003-02-06 18:50:30 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-02-06 18:50:30 +0000 |
commit | 52cf46542e61ed831db35f3efda92046063e8764 (patch) | |
tree | 9ac24e21d682e1a04d2d6583e8f9d8bb3b1f442f /threadproc/os2/proc.c | |
parent | 853597c1d0a0706c2ec7e90415b0e1b8d0569f7f (diff) | |
download | apr-52cf46542e61ed831db35f3efda92046063e8764.tar.gz apr-52cf46542e61ed831db35f3efda92046063e8764.zip |
Allow apr_proc_create() to call an app-provided error reporting
function when apr_proc_create() fails in the new child process
after fork(). The app-provided error reporting function will only
be called on platforms where apr_proc_create() first calls
fork() to create the new process.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64330 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2/proc.c')
-rw-r--r-- | threadproc/os2/proc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c index 75b4237bf..7afe711fe 100644 --- a/threadproc/os2/proc.c +++ b/threadproc/os2/proc.c @@ -278,6 +278,15 @@ static char *double_quotes(apr_pool_t *pool, const char *str) +APR_DECLARE(apr_status_t) apr_procattr_child_errfn_set(apr_procattr_t *attr, + apr_child_errfn_t *errfn) +{ + /* won't ever be called on this platform, so don't save the function pointer */ + return APR_SUCCESS; +} + + + APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *proc, const char *progname, const char * const *args, const char * const *env, |