summaryrefslogtreecommitdiff
path: root/threadproc/os2
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-19 02:02:10 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-19 02:02:10 +0000
commitf699e130c36e89320441e0161a3b6a2fce79718d (patch)
tree945162df4b8fe6f516806f00878c9e9baea7d181 /threadproc/os2
parentbd3ea52ff1f39a78823dafd14620473a6bc44ca6 (diff)
downloadlibapr-f699e130c36e89320441e0161a3b6a2fce79718d.tar.gz
OS/2: Add ap_get_os_proc().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r--threadproc/os2/proc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index 03339736b..c3d40b928 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -60,6 +60,7 @@
#include "apr_file_io.h"
#include "apr_general.h"
#include "apr_lib.h"
+#include "apr_portable.h"
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
@@ -327,3 +328,13 @@ ap_status_t ap_wait_proc(struct proc_t *proc,
return errno;
}
+
+
+ap_status_t ap_get_os_proc(ap_os_proc_t *theproc, ap_proc_t *proc)
+{
+ if (proc == NULL) {
+ return APR_ENOPROC;
+ }
+ *theproc = proc->pid;
+ return APR_SUCCESS;
+}