summaryrefslogtreecommitdiff
path: root/src/rmd_rescue.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-04-28 19:28:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-04-28 19:28:14 -0700
commit3812a302cefcccbeb9bc46ed5c55710eb4c0512e (patch)
tree0699a192560cd2e9d50a363a1929af7f794ed43c /src/rmd_rescue.c
parent64eed5bc02c0a4e09423aa67f118a2a7c8bc69b0 (diff)
encode_cache: handle pthread_create() errors
switch to using rmdThread() and handle errors previously pthread_create() errors were completely unnoticed
Diffstat (limited to 'src/rmd_rescue.c')
-rw-r--r--src/rmd_rescue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rmd_rescue.c b/src/rmd_rescue.c
index 73ae7d4..ac224dd 100644
--- a/src/rmd_rescue.c
+++ b/src/rmd_rescue.c
@@ -114,8 +114,9 @@ int rmdRescue(const char *path)
rmdRegisterCallbacks(&pdata);
fprintf(stderr, "Restoring %s!!!\n", path);
-
- rmdEncodeCache(&pdata);
+
+ if (rmdEncodeCache(&pdata))
+ return 1;
fprintf(stderr, "Done!!!\n");
fprintf(stderr, "Goodbye!\n");
© All Rights Reserved