diff options
author | Andy Green <andy.green@linaro.org> | 2012-10-19 09:21:32 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-10-19 09:21:32 +0800 |
commit | 66075f01a4834673d315edb40b28514d320f04ae (patch) | |
tree | 5c46cfd185f826310edc136a4a69c785451677fe | |
parent | 2f7ac869f7d50d1c14cf61943abd9447aabbd039 (diff) |
fix another ignored retval on write
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r-- | libarmep/service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libarmep/service.c b/libarmep/service.c index 2f85cff..68a7028 100644 --- a/libarmep/service.c +++ b/libarmep/service.c @@ -134,7 +134,8 @@ void probe_close(struct aep *aep) unsigned char c = AEPC_STOP; int n; - write(aep->fd, &c, 1); + if (write(aep->fd, &c, 1) < 0) + fprintf(stderr, "Couldn't ask probe to stop during close\n"); /* we don't care, we are closing */ for (n = 0; n < CHANNELS_PER_PROBE; n++) { if (aep->ch[n].pretrig_ring) |