Skip Menu |

This queue is for tickets about the Net-Daemon CPAN distribution.

Report information
The Basics
Id: 70890
Status: resolved
Priority: 0/
Queue: Net-Daemon

People
Owner: Nobody in particular
Requestors: pjotrekse [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.48
Fixed in: (no value)



Subject: Demo-code (partially) non-functional
Demo code : sub new ($$;$) { my($class, $attr, $args) = @_; my($self) = $class->SUPER::new($attr, $args); if ($self->{'parent'}) { # Called via Clone() ... will never work, as a cloned instance never passes the 'new' function. Inserting print statements in Net::Daemon methods 'new', 'Clone' and 'Run', and in subclass' 'new' and 'Run' methods prove that no 'new' method is passed by instances made with 'Clone'. Suggestion: Make a method i.e. 'initiate-clone', that is called before 'Run', and that can be overridden in the subclass to perform necessary initiation, that is now non-functional in the demo-code.
Ticket migrated to github as https://github.com/toddr/Net-Daemon/issues/2