mirror of
https://git.proxmox.com/git/librados2-perl
synced 2025-10-05 10:27:18 +00:00
depend on libpve-access-control
We need to be able to close open server sockets.
This commit is contained in:
parent
9539bd3700
commit
e2171b3622
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=3.1
|
|||||||
|
|
||||||
VERSION=0.72.1
|
VERSION=0.72.1
|
||||||
PACKAGE=librados2-perl
|
PACKAGE=librados2-perl
|
||||||
PKGREL=2
|
PKGREL=3
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
10
PVE/RADOS.pm
10
PVE/RADOS.pm
@ -6,6 +6,8 @@ use warnings;
|
|||||||
use Carp;
|
use Carp;
|
||||||
use JSON;
|
use JSON;
|
||||||
use Socket;
|
use Socket;
|
||||||
|
use PVE::INotify;
|
||||||
|
use PVE::RPCEnvironment;
|
||||||
|
|
||||||
require Exporter;
|
require Exporter;
|
||||||
|
|
||||||
@ -77,6 +79,8 @@ my $readdata = sub {
|
|||||||
sub new {
|
sub new {
|
||||||
my ($class, %params) = @_;
|
my ($class, %params) = @_;
|
||||||
|
|
||||||
|
my $rpcenv = PVE::RPCEnvironment::get();
|
||||||
|
|
||||||
socketpair(my $child, my $parent, AF_UNIX, SOCK_STREAM, PF_UNSPEC)
|
socketpair(my $child, my $parent, AF_UNIX, SOCK_STREAM, PF_UNSPEC)
|
||||||
|| die "socketpair: $!";
|
|| die "socketpair: $!";
|
||||||
|
|
||||||
@ -100,6 +104,12 @@ sub new {
|
|||||||
} else { # child
|
} else { # child
|
||||||
$0 = 'pverados';
|
$0 = 'pverados';
|
||||||
|
|
||||||
|
PVE::INotify::inotify_close();
|
||||||
|
|
||||||
|
if (my $atfork = $rpcenv->{atfork}) {
|
||||||
|
&$atfork();
|
||||||
|
}
|
||||||
|
|
||||||
# fixme: timeout?
|
# fixme: timeout?
|
||||||
|
|
||||||
close $child;
|
close $child;
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
librados2-perl (0.72.1-3) unstable; urgency=low
|
||||||
|
|
||||||
|
* depend on libpve-access-control
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 21 Jan 2014 09:17:44 +0100
|
||||||
|
|
||||||
librados2-perl (0.72.1-2) unstable; urgency=low
|
librados2-perl (0.72.1-2) unstable; urgency=low
|
||||||
|
|
||||||
* always fork worker process
|
* always fork worker process
|
||||||
|
@ -3,7 +3,7 @@ Version: @@VERSION@@-@@PKGRELEASE@@
|
|||||||
Section: perl
|
Section: perl
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: @@ARCH@@
|
Architecture: @@ARCH@@
|
||||||
Depends: libc6 (>= 2.2.5), perl (>= 5.14.2-21+deb7u1), perlapi-5.14.2, librados2 (>= 0.72.1)
|
Depends: libc6 (>= 2.2.5), perl (>= 5.14.2-21+deb7u1), perlapi-5.14.2, librados2 (>= 0.72.1), libpve-access-control
|
||||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
Description: Perl bindings for librados
|
Description: Perl bindings for librados
|
||||||
This package contains librados perl binding used by Proxmox VE.
|
This package contains librados perl binding used by Proxmox VE.
|
||||||
|
Loading…
Reference in New Issue
Block a user