Skip to content

Commit

Permalink
Removed proctitle setting methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brane F. Gračnar committed May 18, 2011
1 parent 99169c9 commit 715fab6
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions lib/Net/OpenVPN/AuthDaemon.pm
Expand Up @@ -52,12 +52,6 @@ sub getError {
return $self->{error}; return $self->{error};
} }


sub child_init_hook {
my ($self) = @_;
$0 = $self->{_myname} . " (worker, idle, virgin)";
return 1;
}

sub post_bind_hook { sub post_bind_hook {
my ($self) = @_; my ($self) = @_;
if (defined ($self->{umask})) { if (defined ($self->{umask})) {
Expand All @@ -73,27 +67,6 @@ sub post_bind_hook {
open(STDIN, File::Spec->devnull()); open(STDIN, File::Spec->devnull());
} }


sub post_accept_hook {
my ($self) = @_;
my $host = "unix socket ";
eval {
$host = $self->{server}->{client}->peerhost();
};

$0 = $self->{_myname} . " (worker, connect from: " . $host . ": processing)";
return 1;
}

sub pre_loop_hook {
my ($self) = @_;
$0 = $self->{_myname} . " (master)";
}

sub post_process_request_hook {
my ($self) = @_;
$0 = $self->{_myname} . " (worker, idle)";
}

sub process_request { sub process_request {
my ($self) = @_; my ($self) = @_;
my $params = undef; my $params = undef;
Expand Down

0 comments on commit 715fab6

Please sign in to comment.