From 3812a302cefcccbeb9bc46ed5c55710eb4c0512e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 28 Apr 2021 19:28:14 -0700 Subject: encode_cache: handle pthread_create() errors switch to using rmdThread() and handle errors previously pthread_create() errors were completely unnoticed --- src/rmd_rescue.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rmd_rescue.c') 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"); -- cgit v1.2.3