aboutsummaryrefslogtreecommitdiff
path: root/libarmep
diff options
context:
space:
mode:
Diffstat (limited to 'libarmep')
-rw-r--r--libarmep/service.c3
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)