1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/misc
Zdenek Kabelac 5de9444202 locking: avoid descriptor leak for nonblocking mode
When file-locking mode failed on locking, such description was leaked
(typically not an issue since command usually exists afterwards).
So shirt close() at the end of function and use it in all error paths.

Also make sure, when interrrupt is detected, it's really not holding
lock and returns 0.
2017-08-25 14:12:55 +02:00
..
crc_gen.c doc: change fsf address 2016-01-21 12:11:37 +01:00
crc.c cleanup: whitespace 2017-07-11 16:26:12 +02:00
crc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
intl.h doc: change fsf address 2016-01-21 12:11:37 +01:00
last-path-component.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lib.h lib: Move lcm and gcd to lib/misc for wider use. 2016-08-18 14:06:13 +01:00
lvm-exec.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-exec.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-file.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-file.h log: separate output and make it possible to use given FDs 2016-08-09 18:24:45 +02:00
lvm-flock.c locking: avoid descriptor leak for nonblocking mode 2017-08-25 14:12:55 +02:00
lvm-flock.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-globals.c vgimportclone: add native command 2016-06-22 13:13:10 -05:00
lvm-globals.h vgimportclone: add native command 2016-06-22 13:13:10 -05:00
lvm-maths.c lib: Move lcm and gcd to lib/misc for wider use. 2016-08-18 14:06:13 +01:00
lvm-maths.h lib: Move lcm and gcd to lib/misc for wider use. 2016-08-18 14:06:13 +01:00
lvm-percent.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-percent.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-signal.c signals: fix comparison flaw 2017-04-10 18:41:28 +02:00
lvm-signal.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm-string.c string: Add first_substring(). 2016-07-14 14:46:38 +01:00
lvm-string.h string: Add first_substring(). 2016-07-14 14:46:38 +01:00
lvm-wrappers.c fix: make udev_get_library_context available also for non-udev compilations 2016-04-01 15:35:22 +02:00
lvm-wrappers.h fix: make udev_get_library_context available also for non-udev compilations 2016-04-01 15:35:22 +02:00
sharedlib.c coverity: check for zero length buffer 2016-02-23 21:40:16 +01:00
sharedlib.h doc: change fsf address 2016-01-21 12:11:37 +01:00
util.h util: add clz() and use __builtin_clz() if available 2016-12-13 20:41:29 +00:00