Permalink
Browse files

hooks/lvm2: close fd6 on lvm invocation

This avoids the obnoxious 'zomg im leaking FDs' message that no one
fucking cares about.
  • Loading branch information...
1 parent f4738c0 commit d364f0e3dca01c8a7d03532de565abff71565895 @falconindy committed Jun 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 hooks/lvm2
View
@@ -18,6 +18,6 @@ if [ -e /sys/class/misc/device-mapper ]; then
msg "Activating logical volumes..."
[ -d /etc/lvm ] && /sbin/lvm vgscan
- /sbin/lvm vgchange ${quiet:+--quiet} --sysinit -ay
+ /sbin/lvm vgchange ${quiet:+--quiet} --sysinit -ay 6>&-
fi

0 comments on commit d364f0e

Please sign in to comment.