diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-17 00:30:47 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-17 00:30:47 +0000 |
commit | d01c1c8d9bec972e9a53c31b8ff8957a8b95ff6e (patch) | |
tree | d9ee8f6d347197ac0b6dc8662ba055f1ae2b9a08 /test/testshm.c | |
parent | a0101708d90ed99b99aaf6b75ad9a2e04c970d56 (diff) | |
download | libapr-d01c1c8d9bec972e9a53c31b8ff8957a8b95ff6e.tar.gz |
I had that exit status check backwards -- it wasn't working when I thought
it was. No bother, it works now.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testshm.c')
-rw-r--r-- | test/testshm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testshm.c b/test/testshm.c index f13d00dce..107ae390a 100644 --- a/test/testshm.c +++ b/test/testshm.c @@ -249,7 +249,7 @@ static apr_status_t test_named(apr_pool_t *parpool) 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 @@ static apr_status_t test_named(apr_pool_t *parpool) 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; } |