aboutsummaryrefslogtreecommitdiff
path: root/threadproc/os2/proc.c
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2002-01-28 21:58:16 +0000
committerGreg Stein <gstein@apache.org>2002-01-28 21:58:16 +0000
commitc83a9565bb7a41d9c89aea311a34d635f20fe220 (patch)
tree27008844acf42b08f87ebd8cf5ecc714c68b1340 /threadproc/os2/proc.c
parent392a4f63a43629603e997d74963c29ed7a1d6101 (diff)
downloadapr-c83a9565bb7a41d9c89aea311a34d635f20fe220.tar.gz
apr-c83a9565bb7a41d9c89aea311a34d635f20fe220.zip
Add a couple new command types to process creation:
APR_PROGRAM_ENV: start the program using the caller's environment APR_PROGRAM_PATH: search PATH for the program, use caller's env (the normal APR_PROGRAM isolates the env and does not use PATH) The BeOS, OS/2, and Win32 implementations are incomplete. These two new forms just default back to APR_PROGRAM for now. (although BeOS doesn't even distinguish between APR_SHELLCMD and APR_PROGRAM!) On Unix and Netware, these map into execv() and execvp() calls. Also clarified some doc for the enums in apr_thread_proc.h a bit. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2/proc.c')
-rw-r--r--threadproc/os2/proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index 927fd96ec..08af08794 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -345,6 +345,8 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *proc, const char *progname
if (extension == NULL || strchr(extension, '/') || strchr(extension, '\\'))
extension = "";
+ /* ### how to handle APR_PROGRAM_ENV and APR_PROGRAM_PATH? */
+
if (attr->cmdtype == APR_SHELLCMD || strcasecmp(extension, ".cmd") == 0) {
strcpy(interpreter, "#!" SHELL_PATH);
extra_arg = "/C";