mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: check for socket_path being set
As we check for existince on entering path let's ensure it's there also on exit path.
This commit is contained in:
parent
cc4a92b13c
commit
728435e7d6
@ -690,7 +690,7 @@ void daemon_start(daemon_state s)
|
||||
out:
|
||||
/* If activated by systemd, do not unlink the socket - systemd takes care of that! */
|
||||
if (!_systemd_activation && s.socket_fd >= 0)
|
||||
if (unlink(s.socket_path))
|
||||
if (s.socket_path && unlink(s.socket_path))
|
||||
perror("unlink error");
|
||||
|
||||
if (s.socket_fd >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user