Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ requires "warnings" => "0";
requires "Sys::Syslog" => "0.29";

on 'test' => sub {
requires 'Test' => '0';
requires 'Test::More' => '0';
};

20 changes: 1 addition & 19 deletions lib/Net/Daemon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ sub new ($$;$) {
}
if ( $options->{'version'} ) {
print STDERR $self->Version(), "\n";
exit 1;
exit 0;
}
}

Expand Down Expand Up @@ -1316,24 +1316,6 @@ given base.
$server->Bind();


=head1 KNOWN PROBLEMS

Most, or even any, known problems are related to the Sys::Syslog module
which is by default used for logging events under Unix. I'll quote some
examples:

=over

=item Usage: Sys::Syslog::_PATH_LOG at ...

This problem is treated in perl bug 20000712.003. A workaround is
changing line 277 of Syslog.pm to

my $syslog = &_PATH_LOG() || croak "_PATH_LOG not found in syslog.ph";

=back


=head1 AUTHOR AND COPYRIGHT

Net::Daemon is Copyright (C) 1998, Jochen Wiedmann
Expand Down
5 changes: 0 additions & 5 deletions lib/Net/Daemon/Log.pm
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ sub OpenLog($) {
if ($@) {
die "Cannot open Syslog: $@";
}
if ( $^O ne 'solaris'
&& $^O ne 'freebsd'
&& eval { Sys::Syslog::_PATH_LOG() } ) {
Sys::Syslog::setlogsock('unix');
}
Sys::Syslog::openlog(
$self->{'logname'} || ref($self), 'pid',
$self->{'facility'} || 'daemon'
Expand Down
Loading