mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
clmvd: fix decriptor leak on restart
Do not leave descriptor used for dup2() openned.
This commit is contained in:
parent
16c1dacb6e
commit
7b1315411f
@ -1,5 +1,6 @@
|
||||
Version 2.02.100 -
|
||||
================================
|
||||
Fix clvmd descriptor leak on restart.
|
||||
Add pipe_open/close() to replace less secure popen() glibc call.
|
||||
Fix metadata area offset/size overflow if it's >= 4g and while using lvmetad.
|
||||
Inherit and apply any profile attached to a VG if creating new thin pool.
|
||||
|
@ -1085,6 +1085,10 @@ static void be_daemon(int timeout)
|
||||
log_error("Error setting terminal FDs to /dev/null: %m");
|
||||
exit(5);
|
||||
}
|
||||
if ((devnull > STDERR_FILENO) && close(devnull)) {
|
||||
log_sys_error("close", "/dev/null");
|
||||
exit(7);
|
||||
}
|
||||
if (chdir("/")) {
|
||||
log_error("Error setting current directory to /: %m");
|
||||
exit(6);
|
||||
|
Loading…
Reference in New Issue
Block a user