[Git-commits] [grml/grml-rescueboot] 700e01: Fix leaked file descriptors

Michael Lass lass at mail.uni-paderborn.de
Mon Sep 23 10:06:41 CEST 2013


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-rescueboot
  Commit: 700e01c3589c77af0f6bb3c0662ec6bd780c0f4b
      https://github.com/grml/grml-rescueboot/commit/700e01c3589c77af0f6bb3c0662ec6bd780c0f4b
  Author: Michael Lass <lass at mail.uni-paderborn.de>
  Date:   2013-09-20 (Fri, 20 Sep 2013)

  Changed paths:
    M 42_grml

  Log Message:
  -----------
  Fix leaked file descriptors

When running prepare_grub_to_access_device inside of the here document a file
descriptor to a temporary file is leaked. When prepare_grub_to_access_device
calls various lvm related commands these will complain about this.

Minimum example:
<< EOF
"$(lvs)"
EOF

Avoid this by calling prepare_grub_to_access_device before assembling the
output.





More information about the Git-commits mailing list