aaron 02/01/16 16:30:47
Modified: test testshm.c
Log:
I had that exit status check backwards -- it wasn't working when I thought
it was. No bother, it works now.
Revision Changes Path
1.3 +2 -2 apr/test/testshm.c
Index: testshm.c
===================================================================
RCS file: /home/cvs/apr/test/testshm.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- testshm.c 16 Jan 2002 22:08:06 -0000 1.2
+++ testshm.c 17 Jan 2002 00:30:47 -0000 1.3
@@ -249,7 +249,7 @@
if (waitpid(pidconsumer, &exit_int, 0) < 0) {
return errno;
}
- if (WIFEXITED(exit_int)) {
+ if (!WIFEXITED(exit_int)) {
printf("Producer was unsuccessful.\n");
return APR_EGENERAL;
}
@@ -257,7 +257,7 @@
if (waitpid(pidproducer, &exit_int, 0) < 0) {
return errno;
}
- if (WIFEXITED(exit_int)) {
+ if (!WIFEXITED(exit_int)) {
printf("Consumer was unsuccessful.\n");
return APR_EGENERAL;
}