r71470 - in /branches/upstream/libproc-daemon-perl/current: Changes MANIFEST META.yml lib/Proc/Daemon.pm lib/Proc/Daemon.pod
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Wed Mar 16 01:33:18 UTC 2011
Author: jawnsy-guest
Date: Wed Mar 16 01:33:12 2011
New Revision: 71470
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=71470
Log:
[svn-upgrade] new version libproc-daemon-perl (0.09)
Modified:
branches/upstream/libproc-daemon-perl/current/Changes
branches/upstream/libproc-daemon-perl/current/MANIFEST
branches/upstream/libproc-daemon-perl/current/META.yml
branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm
branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod
Modified: branches/upstream/libproc-daemon-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/Changes?rev=71470&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/Changes (original)
+++ branches/upstream/libproc-daemon-perl/current/Changes Wed Mar 16 01:33:12 2011
@@ -1,50 +1,54 @@
-Revision history for Perl module Proc::Daemon.
-
-0.08 Sun Mar 13 2011
- - The <open> Mode of the daemon file handles STDIN, STDOUT, STDERR can be
- specified now. The default Mode values are the same as before.
- - Updated the documentation.
-
-0.07 Thu Feb 17 2011
- - Add signal processing to Kill_Daemon().
- - Updated the documentation.
-
-0.06 Mon Jan 17 2011
- - A lot of documentation was add to the source code.
- - Daemon STDIN was fixed to "read" now instead of "write".
- - Replaced global filehandles with scalars.
- - Add a <die> if <chdir> fails.
- - Updated the documentation and add a note to the documentation about the
- behavior of process-group Signals.
-
-0.05 Thu Okt 28 2010
- - fixed a problem when using the old method of calling Proc::Daemon::Init
- without object (reported by Alex Samorukov). The parent process didn't
- exit.
- - fixed a problem with Proc::ProcessTable 0.44: Under some conditions
- 'cmndline' retruns with space and/or other characters at the end.
- - Update and small fixes in the documentation.
-
-0.04 Sun Okt 24 2010
- - Added functions: new(), adjust_settings(), fix_filename(), Status(),
- Kill_Daemon(), get_pid() and get_pid_by_proc_table_attr().
- - Init() now returns the PID of the daemon.
- - Fork() now allways returns values like Perls built-in 'fork' does.
- - Description was rewritten, extended and moved to the new Daemon.pod file.
- - Additional test are done at installation.
- - $SIG{'HUP'} was set to be valid only 'local' (bug report).
- - POSIX::EAGAIN() was added to Fork() (bug report).
-
-0.03 Thu Jun 19 2003
- - Licensing is more explicit: Either GPL or Artistic.
- - Updated author contact information.
-
-0.02 Sat Apr 17 1999
- - init() function superceded by Init() function.
- - All open files are closed during daemonization.
- - A double fork is now down to avoid the potential of acquiring
- a controlling terminal.
- - Added Fork() and OpenMax() functions.
-
-0.01 Thu Jan 27 1998
- - initial bundled release.
+Revision history for Perl module Proc::Daemon.
+
+0.09 Tue Mar 15 2011
+ - Fix for a possibly not reseted numbered match variable ($1).
+ - Typo fix and text improvement in the documentation.
+
+0.08 Sun Mar 13 2011
+ - The <open> Mode of the daemon file handles STDIN, STDOUT, STDERR can be
+ specified now. The default Mode values are the same as before.
+ - Updated the documentation.
+
+0.07 Thu Feb 17 2011
+ - Add signal processing to Kill_Daemon().
+ - Updated the documentation.
+
+0.06 Mon Jan 17 2011
+ - A lot of documentation was add to the source code.
+ - Daemon STDIN was fixed to "read" now instead of "write".
+ - Replaced global filehandles with scalars.
+ - Add a <die> if <chdir> fails.
+ - Updated the documentation and add a note to the documentation about the
+ behavior of process-group Signals.
+
+0.05 Thu Okt 28 2010
+ - fixed a problem when using the old method of calling Proc::Daemon::Init
+ without object (reported by Alex Samorukov). The parent process didn't
+ exit.
+ - fixed a problem with Proc::ProcessTable 0.44: Under some conditions
+ 'cmndline' retruns with space and/or other characters at the end.
+ - Update and small fixes in the documentation.
+
+0.04 Sun Okt 24 2010
+ - Added functions: new(), adjust_settings(), fix_filename(), Status(),
+ Kill_Daemon(), get_pid() and get_pid_by_proc_table_attr().
+ - Init() now returns the PID of the daemon.
+ - Fork() now allways returns values like Perls built-in 'fork' does.
+ - Description was rewritten, extended and moved to the new Daemon.pod file.
+ - Additional test are done at installation.
+ - $SIG{'HUP'} was set to be valid only 'local' (bug report).
+ - POSIX::EAGAIN() was added to Fork() (bug report).
+
+0.03 Thu Jun 19 2003
+ - Licensing is more explicit: Either GPL or Artistic.
+ - Updated author contact information.
+
+0.02 Sat Apr 17 1999
+ - init() function superceded by Init() function.
+ - All open files are closed during daemonization.
+ - A double fork is now down to avoid the potential of acquiring
+ a controlling terminal.
+ - Added Fork() and OpenMax() functions.
+
+0.01 Thu Jan 27 1998
+ - initial bundled release.
Modified: branches/upstream/libproc-daemon-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/MANIFEST?rev=71470&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/MANIFEST (original)
+++ branches/upstream/libproc-daemon-perl/current/MANIFEST Wed Mar 16 01:33:12 2011
@@ -1,9 +1,9 @@
-Changes
-MANIFEST
-Makefile.PL
-README
-lib/Proc/Daemon.pm
-lib/Proc/Daemon.pod
-t/01_loadmodule.t
-t/02_testmodule.t
-META.yml Module meta-data (added by MakeMaker)
+Changes
+lib/Proc/Daemon.pm
+lib/Proc/Daemon.pod
+Makefile.PL
+MANIFEST
+META.yml Module meta-data (added by MakeMaker)
+README
+t/01_loadmodule.t
+t/02_testmodule.t
Modified: branches/upstream/libproc-daemon-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/META.yml?rev=71470&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/META.yml (original)
+++ branches/upstream/libproc-daemon-perl/current/META.yml Wed Mar 16 01:33:12 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Proc-Daemon
-version: 0.08
+version: 0.09
abstract: ~
license: perl
author:
Modified: branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm?rev=71470&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm (original)
+++ branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm Wed Mar 16 01:33:12 2011
@@ -21,7 +21,7 @@
use strict;
use POSIX();
-$Proc::Daemon::VERSION = '0.08';
+$Proc::Daemon::VERSION = '0.09';
################################################################################
@@ -293,20 +293,16 @@
# add a number to the file.
# Args: ( $self, $key, $extract_mode )
# key: one of 'child_STDIN', 'child_STDOUT', 'child_STDERR', 'pid_file'
-# extract_mode: 1 = separate MODE form filename before checking pathname
-# | <undef>
+# extract_mode: true = separate <open> MODE form filename before checking
+# path/filename; false = no MODE to check
# Returns: nothing
################################################################################
my %memory;
sub fix_filename {
my Proc::Daemon $self = shift;
- my $key = shift;
- my $var = $self->{ $key };
- my $mode = '';
- if ( shift ) {
- $var =~ s/^([\+\<\>\-\|]+)//;
- $mode = $1 || ( $key eq 'child_STDIN' ? '<' : '+>' );
- }
+ my $key = shift;
+ my $var = $self->{ $key };
+ my $mode = ( shift ) ? ( $var =~ s/^([\+\<\>\-\|]+)// ? $1 : ( $key eq 'child_STDIN' ? '<' : '+>' ) ) : '';
# add path to filename
if ( $var =~ s/^\.\/// || $var !~ /\// ) {
Modified: branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod?rev=71470&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod (original)
+++ branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod Wed Mar 16 01:33:12 2011
@@ -106,7 +106,7 @@
NOTE: Because of the second fork the daemon will not be a session-leader and
therefore Signals will not be send to other members of his process group. If
you need the functionality of a session-leader you may want to call
-POSIX::setsid() manually on your daemon.
+POSIX::setsid() manually at your daemon.
@@ -132,22 +132,23 @@
=item child_STDIN
Defines the path to STDIN of your daemon. Defaults to C</dev/null>. Default
-Mode is '<' (read). You can set your prefered Mode as if you use Perls C<open>
-with a two-argument form.
+Mode is '<' (read). You can define other Mode the same way as you do using
+Perls C<open> in a two-argument form.
=item child_STDOUT
Defines the path where the output of your daemon will go. Defaults to
-C</dev/null>. Default Mode is '+>' (write/read). You can set your prefered Mode
-as if you use Perls C<open> with a two-argument form.
+C</dev/null>. Default Mode is '+>' (write/read). You can define other Mode the
+same way as you do using Perls C<open> in a two-argument form.
=item child_STDERR
Defines the path where the error output of your daemon will go. Defaults to
-C</dev/null>. Default Mode is '+>' (write/read). You can set your prefered Mode
-as if you use Perls C<open> with a two-argument form.
+C</dev/null>. Default Mode is '+>' (write/read). You can define other Mode the
+same way as you do using Perls C<open> in a two-argument form, see example
+below.
=item pid_file
@@ -397,7 +398,7 @@
This module requires the C<POSIX> module to be installed.
The C<Proc::ProcessTable> module is not essentially required but it can be
-usefull if it is installed (see above).
+useful if it is installed (see above).
More information about the Pkg-perl-cvs-commits
mailing list