diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-06-28 12:59:40 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-06-28 12:59:40 +0200 |
commit | 124965832295a277b9ca6ae9fac4f45a74a36b2a (patch) | |
tree | f299e2335863f74e0be0707f84b85211baaf2d03 /src/tests/common/fdset_tests.c | |
parent | 3d2d198c71a6b844b60fa9ef68801b66bba93361 (diff) | |
download | knot-upstream/1.3.0_rc3.tar.gz |
New upstream version 1.3.0~rc3upstream/1.3.0_rc3
Diffstat (limited to 'src/tests/common/fdset_tests.c')
-rw-r--r-- | src/tests/common/fdset_tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/common/fdset_tests.c b/src/tests/common/fdset_tests.c index 627829e..d7b29fa 100644 --- a/src/tests/common/fdset_tests.c +++ b/src/tests/common/fdset_tests.c @@ -14,6 +14,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include <stdlib.h> #include <stdint.h> #include <sys/time.h> @@ -83,7 +84,9 @@ void* thr_action(void *arg) /* Write pattern. */ char pattern = WRITE_PATTERN; - (void)write(*fd, &pattern, WRITE_PATTERN_LEN); + if (write(*fd, &pattern, WRITE_PATTERN_LEN) == -1) { + // Error. + } return NULL; } |