mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add test for fcntl error in singlenode client code.
Static analyzer noticed this check could be handy.
This commit is contained in:
parent
765918a528
commit
fb2f985dfe
@ -1,5 +1,6 @@
|
||||
Version 2.02.87 -
|
||||
===============================
|
||||
Add test for fcntl error in singlenode client code.
|
||||
Remove --force option from lvrename manpage.
|
||||
Add missing new line in lvrename help text.
|
||||
Add basic support for RAID 1/4/5/6 (i.e. create, remove, display)
|
||||
|
@ -55,7 +55,10 @@ static int init_comms(void)
|
||||
goto error;
|
||||
}
|
||||
/* Set Close-on-exec */
|
||||
fcntl(listen_fd, F_SETFD, 1);
|
||||
if (fcntl(listen_fd, F_SETFD, 1)) {
|
||||
DEBUGLOG("Setting CLOEXEC on client fd faile: %s\n", strerror(errno));
|
||||
goto error;
|
||||
}
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
memcpy(addr.sun_path, SINGLENODE_CLVMD_SOCKNAME,
|
||||
|
Loading…
Reference in New Issue
Block a user