Bug#432986: lvm utilities complain about fds >2

Alasdair G Kergon agk at redhat.com
Fri Jul 13 14:57:22 UTC 2007


On Fri, Jul 13, 2007 at 03:20:10PM +0100, Ian Jackson wrote:
> The lvm utilities apparently whinge if they inherit any fds other than
> 0,1,2.  This is quite unreasonable.  There is nothing wrong with
> executing a program with some inherited fd >2 and there are many
> reasons why one might want to do so.

Do you have any examples?

> If lvm needs to fork off a daemon or some such then fine, it ought to
> close them, but it should do so silently.
 
The warning has originally added upstream to help prove that a bug
originally reported against lvm2 was actually elsewhere.

The messages can be suppressed at runtime by setting the environment
variable LVM_SUPPRESS_FD_WARNINGS.

Alasdair
-- 
agk at redhat.com




More information about the pkg-lvm-maintainers mailing list