summaryrefslogtreecommitdiffstats
path: root/engines/e_dasync.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2016-03-07 13:27:52 +0100
committerRich Salz <rsalz@openssl.org>2016-03-07 18:21:07 +0100
commitb8972edad65a5245645f40654b903dbcd1a4d5c1 (patch)
tree2d0c5dc69908ba1b3bec46315b94a5d6ce4e7cd1 /engines/e_dasync.c
parentdocumentation and duplicate goto statements (diff)
downloadopenssl-b8972edad65a5245645f40654b903dbcd1a4d5c1.tar.xz
openssl-b8972edad65a5245645f40654b903dbcd1a4d5c1.zip
GH804: Fix unused-result warnings in dasync
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'engines/e_dasync.c')
-rw-r--r--engines/e_dasync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/e_dasync.c b/engines/e_dasync.c
index 0580103d23..25dd233769 100644
--- a/engines/e_dasync.c
+++ b/engines/e_dasync.c
@@ -338,7 +338,8 @@ static void dummy_pause_job(void) {
#if defined(ASYNC_WIN)
WriteFile(pipefds[1], &buf, 1, &numwritten, NULL);
#elif defined(ASYNC_POSIX)
- write(pipefds[1], &buf, 1);
+ if (write(pipefds[1], &buf, 1) < 0)
+ return;
#endif
/* Ignore errors - we carry on anyway */
@@ -348,7 +349,8 @@ static void dummy_pause_job(void) {
#if defined(ASYNC_WIN)
ReadFile(pipefds[0], &buf, 1, &numread, NULL);
#elif defined(ASYNC_POSIX)
- read(pipefds[0], &buf, 1);
+ if (read(pipefds[0], &buf, 1) < 0)
+ return;
#endif
}