You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/05/25 00:18:10 UTC
cvs commit: apache-2.0/src/lib/apr/test testoc.c
rbb 00/05/24 15:18:08
Modified: src/lib/apr/test testoc.c
Log:
Update testoc to make it work properly with the new ap_proc_t.
Revision Changes Path
1.9 +4 -4 apache-2.0/src/lib/apr/test/testoc.c
Index: testoc.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/test/testoc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- testoc.c 2000/05/03 18:12:51 1.8
+++ testoc.c 2000/05/24 22:18:04 1.9
@@ -88,7 +88,7 @@
ap_pool_t *cont2;
ap_status_t status = 0;
ap_ssize_t nbytes = 0;
- ap_proc_t *newproc = NULL;
+ ap_proc_t newproc;
ap_procattr_t *procattr = NULL;
ap_file_t *std = NULL;
char *args[3];
@@ -131,14 +131,14 @@
}
fprintf(stdout, "OK\n");
- ap_get_childin(&std, newproc);
+ std = newproc.in;
- ap_register_other_child(newproc, ocmaint, NULL, std, context);
+ ap_register_other_child(&newproc, ocmaint, NULL, std, context);
fprintf(stdout, "[PARENT] Sending SIGKILL to child......");
fflush(stdout);
sleep(1);
- if (ap_kill(newproc, SIGKILL) != APR_SUCCESS) {
+ if (ap_kill(&newproc, SIGKILL) != APR_SUCCESS) {
fprintf(stderr,"couldn't send the signal!\n");
exit(-1);
}