r72153 - in /branches/upstream/libproc-daemon-perl/current: Changes META.yml lib/Proc/Daemon.pm lib/Proc/Daemon.pod

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Sat Apr 2 15:11:45 UTC 2011


Author: periapt-guest
Date: Sat Apr  2 15:10:16 2011
New Revision: 72153

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72153
Log:
[svn-upgrade] new version libproc-daemon-perl (0.10)

Modified:
    branches/upstream/libproc-daemon-perl/current/Changes
    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=72153&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/Changes (original)
+++ branches/upstream/libproc-daemon-perl/current/Changes Sat Apr  2 15:10:16 2011
@@ -1,54 +1,57 @@
-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.
+Revision history for Perl module Proc::Daemon.
+
+0.10  Fri Apr 01 2011
+	- improvement how Init() determines whether it was passed a blessed object
+
+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/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libproc-daemon-perl/current/META.yml?rev=72153&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/META.yml (original)
+++ branches/upstream/libproc-daemon-perl/current/META.yml Sat Apr  2 15:10:16 2011
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                Proc-Daemon
-version:             0.09
+version:             0.10
 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=72153&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm (original)
+++ branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pm Sat Apr  2 15:10:16 2011
@@ -5,7 +5,7 @@
 ##      Earl Hood         earl at earlhood.com
 ##      Detlef Pilzecker  deti at cpan.org
 ##  Description:
-##      see Daemon.pod file
+##      Run Perl program(s) as a daemon process, see docu in the Daemon.pod file
 ################################################################################
 ##  Copyright (C) 1997-2011 by Earl Hood and Detlef Pilzecker.
 ##
@@ -21,7 +21,7 @@
 use strict;
 use POSIX();
 
-$Proc::Daemon::VERSION = '0.09';
+$Proc::Daemon::VERSION = '0.10';
 
 
 ################################################################################
@@ -78,7 +78,7 @@
 
 
     # Check if $self has been blessed into the package, otherwise do it now.
-    if ( ref( $self ) ne 'Proc::Daemon' ) {
+    unless ( ref( $self ) && eval{ $self->isa( 'Proc::Daemon' ) } ) {
         $self = ref( $self ) eq 'HASH' ? Proc::Daemon->new( %$self ) : Proc::Daemon->new();
     }
     # If $daemon->Init is used again in the same script,

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=72153&op=diff
==============================================================================
--- branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod (original)
+++ branches/upstream/libproc-daemon-perl/current/lib/Proc/Daemon.pod Sat Apr  2 15:10:16 2011
@@ -185,12 +185,14 @@
 =item *
 
 the PID of the daemon will be returned to C<$daemon> in the parent process
-and a pid-file will be created at C</working/daemon/directory/pid.txt>
-
-=item *
-
-all STDOUT of the daemon will go to C</path/to/daemon/output.file> and
-all STDERR will go to C</working/daemon/directory/debug.txt>
+and a pid-file will be created at C</working/daemon/directory/pid.txt>.
+
+=item *
+
+STDOUT will be open with Mode '+>' (write/read)
+to C</path/to/daemon/output.file> and STDERR will be open
+to C</working/daemon/directory/debug.txt> with Mode '+>>' (write/read opened for
+appending).
 
 =item *
 




More information about the Pkg-perl-cvs-commits mailing list