]> sourceware.org Git - lvm2.git/commit
Use execvp for clvmd restart
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 26 Sep 2011 07:51:23 +0000 (07:51 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 26 Sep 2011 07:51:23 +0000 (07:51 +0000)
commit7ae124743e94b6f93d92ffc7c599d0ea6d4980af
tree8574735bc7282362d97a088f34aa132bf60706a9
parent807a5a7b1333bf9fc857ec73c3ec0d827c1064f5
Use execvp for clvmd restart

Since execve passed only NULL as environ, we had lost all environment vars on
restart - thus actually running  'different' clvmd then the one at start.

Preserving environ allows to restart clvmd with the same settings
(i.e. LD_LIBRARY_PATH)

Add test for second restart.
WHATS_NEW
daemons/clvmd/clvmd-command.c
test/t-clvmd-restart.sh
This page took 0.029779 seconds and 5 git commands to generate.