1
0
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:
Zdenek Kabelac 2011-08-04 12:13:50 +00:00
parent 765918a528
commit fb2f985dfe
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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,