ap_status_t rc;
ap_table_t *env = r->subprocess_env;
char **argv;
- ap_os_proc_t pid;
ap_file_t *file;
ap_iol *iol;
"couldn't create child process: %d: %s", rc, r->filename);
}
else {
-#ifndef WIN32
- /* pjr - this is a cheap hack for now to get the basics working in
- * stages. ap_note_subprocess and free_proc need to be redone
- * to make use of ap_proc_t instead of pid.
- */
- ap_get_os_proc(&pid, procnew);
- ap_note_subprocess(r->pool, pid, kill_after_timeout);
-#endif
+ ap_note_subprocess(r->pool, procnew, kill_after_timeout);
/* Fill in BUFF structure for parents pipe to child's stdout */
ap_get_childout(&file, procnew);
iol = ap_create_file_iol(file);
char **env;
ap_procattr_t *procattr;
ap_proc_t *procnew;
- ap_os_proc_t fred;
ap_status_t rc = APR_SUCCESS;
ap_file_t *file;
ap_iol *iol;
"couldn't create child process: %d: %s", rc, r->filename);
}
else {
-#ifndef WIN32
- /* pjr - this is a cheap hack for now to get the basics working in
- * stages. ap_note_subprocess and free_proc need to be redone
- * to make use of ap_proc_t instead of pid.
- */
- ap_get_os_proc(&fred, procnew);
- ap_note_subprocess(p, fred, kill_after_timeout);
-#endif
+ ap_note_subprocess(p, procnew, kill_after_timeout);
+
/* Fill in BUFF structure for parents pipe to child's stdout */
ap_get_childout(&file, procnew);
iol = ap_create_file_iol(file);
ap_context_t *child_context = cntxt;
ap_procattr_t *procattr;
ap_proc_t *procnew = NULL;
- ap_os_proc_t fred;
ap_file_t *file;
ap_iol *iol;
compr[parm->method].argv[0]);
}
else {
-#ifndef WIN32
- /* pjr - this is a cheap hack for now to get the basics working in
- * stages. ap_note_subprocess and free_proc need to be redon
-
- * to make use of ap_proc_t instead of pid.
- */
- ap_get_os_proc(&fred, procnew);
- ap_note_subprocess(child_context, fred, kill_after_timeout);
-#endif
+ ap_note_subprocess(child_context, procnew, kill_after_timeout);
/* Fill in BUFF structure for parents pipe to child's stdout */
ap_get_childout(&file, procnew);
iol = ap_create_file_iol(file);
int rc = -1;
ap_procattr_t *procattr;
ap_proc_t *procnew;
- ap_os_proc_t fred;
ap_block_alarms();
ap_cleanup_for_exec();
rc = ap_create_process(&procnew, progname, NULL, NULL, procattr, p);
if (rc == APR_SUCCESS) {
-#ifndef WIN32
- /* pjr - this is a cheap hack for now to get the basics working in
- * stages. ap_note_subprocess and free_proc need to be redone
- * to make use of ap_proc_t instead of pid.
- */
- ap_get_os_proc(&fred, procnew);
- ap_note_subprocess(p, fred, kill_after_timeout);
-#endif
+ ap_note_subprocess(p, procnew, kill_after_timeout);
ap_get_childin(fpin, procnew);
}
}