Package: mylvmbackup Version: 0.13-2 Severity: minor Tags: patch upstream Here is a fix for the annoying lvmcreate message about a leaked descriptor.
I also sent the patch to the upstream author. -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (800, 'unstable'), (700, 'stable'), (110, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.7.5 (SMP w/8 CPU cores; PREEMPT) Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to de_DE) Shell: /bin/sh linked to /bin/dash Versions of packages mylvmbackup depends on: ii libconfig-inifiles-perl 2.78-1 pn libdbd-mysql-perl <none> ii libtimedate-perl 1.2000-1 ii lvm2 2.02.98-1 mylvmbackup recommends no packages. Versions of packages mylvmbackup suggests: pn mysql-server <none> -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <[email protected]> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
--- mylvmbackup.orig 2011-05-01 01:02:17.000000000 +0300
+++ mylvmbackup 2013-03-13 17:20:30.113546265 +0200
@@ -23,6 +23,7 @@
use File::Basename;
use File::Temp qw/ mkstemps mktemp /;
use Getopt::Long;
+use Fcntl;
use diagnostics;
use strict;
@@ -206,6 +207,10 @@
die $DBI::errstr;
}
+# Fix to close mysql socket at close
+open(my $mysql_fh, '<&=', $dbh->mysql_fd) or die "dup: $!";
+fcntl($mysql_fh, F_SETFD, FD_CLOEXEC);
+
run_hook ("preflush");
flush_tables($dbh) unless ($skip_flush_tables == 1);
signature.asc
Description: Digital signature

