summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
Diffstat (limited to 'daemons')
-rw-r--r--daemons/clvmd/clvmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c
index 53daa8cc7..96cb69775 100644
--- a/daemons/clvmd/clvmd.c
+++ b/daemons/clvmd/clvmd.c
@@ -604,7 +604,10 @@ int main(int argc, char *argv[])
local_client_head.fd, &local_client_head, newfd->fd, newfd);
/* Don't let anyone else to do work until we are started */
- pthread_create(&lvm_thread, &stack_attr, lvm_thread_fn, &lvm_params);
+ if (pthread_create(&lvm_thread, &stack_attr, lvm_thread_fn, &lvm_params)) {
+ log_sys_error("pthread_create", "");
+ goto out;
+ }
/* Don't start until the LVM thread is ready */
pthread_barrier_wait(&lvm_start_barrier);