mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
clvmd: check for pthread_create status
Coverity: likes to see checked function result.
This commit is contained in:
parent
2c8d6f5c90
commit
9df3069083
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user