*/
int rc = -1;
ap_procattr_t *procattr;
- ap_proc_t procnew;
+ ap_proc_t *procnew;
#ifdef SIGHUP
/* No concept of a child process on Win32 */
ap_tokenize_to_argv(progname, &args, p);
pname = ap_pstrdup(p, args[0]);
- rc = ap_create_process(&procnew, pname, args, NULL, procattr, p);
+ procnew = (ap_proc_t *) ap_palloc(p, sizeof(*procnew));
+ rc = ap_create_process(procnew, pname, args, NULL, procattr, p);
if (rc == APR_SUCCESS) {
- ap_note_subprocess(p, &procnew, kill_after_timeout);
- (*fpin) = procnew.in;
+ ap_note_subprocess(p, procnew, kill_after_timeout);
+ (*fpin) = procnew->in;
}
}
{
int rc;
ap_procattr_t *procattr;
- ap_proc_t procnew;
+ ap_proc_t *procnew;
ap_status_t status;
#ifdef SIGHUP
ap_tokenize_to_argv(pl->program, &args, pl->p);
pname = ap_pstrdup(pl->p, args[0]);
-
- rc = ap_create_process(&procnew, pname, args, NULL, procattr, pl->p);
+ procnew = (ap_proc_t *) ap_palloc(p, sizeof(*procnew));
+ rc = ap_create_process(procnew, pname, args, NULL, procattr, pl->p);
if (rc == APR_SUCCESS) {
/* pjr - This no longer happens inside the child, */
/* I am assuming that if ap_create_process was */
/* successful that the child is running. */
RAISE_SIGSTOP(PIPED_LOG_SPAWN);
- pl->pid = &procnew;
- ap_register_other_child(&procnew, piped_log_maintenance, pl,
+ pl->pid = procnew;
+ ap_register_other_child(procnew, piped_log_maintenance, pl,
ap_piped_log_write_fd(pl), pl->p);
}
}