diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2006-10-03 16:06:53 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2006-10-03 16:06:53 +0000 |
commit | 27e73e5a3094c924bec506621c706ec56477f8c4 (patch) | |
tree | f88c5a9bdaf2553577425f5bbb98da6e2b2d5dac /regress/lib/libpthread/blocked_dup2 | |
parent | 0a2bc75af6d00aebd09f3ec63d3b030431c4ee4f (diff) |
correct check for proper return value of dup2
Diffstat (limited to 'regress/lib/libpthread/blocked_dup2')
-rw-r--r-- | regress/lib/libpthread/blocked_dup2/blocked_dup2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libpthread/blocked_dup2/blocked_dup2.c b/regress/lib/libpthread/blocked_dup2/blocked_dup2.c index a79c6031a3c..0b4922387bd 100644 --- a/regress/lib/libpthread/blocked_dup2/blocked_dup2.c +++ b/regress/lib/libpthread/blocked_dup2/blocked_dup2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: blocked_dup2.c,v 1.1 2006/09/22 18:31:06 kurt Exp $ */ +/* $OpenBSD: blocked_dup2.c,v 1.2 2006/10/03 16:06:52 kurt Exp $ */ /* * Copyright (c) 2006 Kurt Miller <kurt@intricatesoftware.com> * @@ -104,7 +104,7 @@ main(int argc, char *argv[]) CHECKr(pthread_create(&waiting_threads[j], NULL, waiting_read, (void *)newfd)); nanosleep(&rqtp, NULL); - CHECKr(dup2(fd, newfd)); + CHECKe(dup2(fd, newfd)); for (j = 0; j < BUSY_THREADS; j++) { CHECKr(pthread_join(busy_threads[j], &value_ptr)); ASSERT(value_ptr == (void *)EBADF); |