Term::YAP::Process - process based subclass of Term::YAP
See parent class.
This module is a fork base implementation of Term::YAP.
fork
All from parent class plus the described below.
The PID from the child process created to start the pulse.
This is a read-only attribute and it's value is set after invoking the start method.
start
This class uses a USR1 signal to stop the child process of printing the pulse bar.
This read-only attribute holds the signal number (an integer) that is built during class instantiation depending on the platform where is executed.
This read-only attribute is a boolean used by the child process to check if it should stop printing the pulse bar.
You probably won't need to use externally this attribute.
Some parent methods are overriden:
stop
And some others are implemented by this class.
Getter for enough attribute.
enough
Returns the value of usr1 attribute.
usr1
Returns the value of the child_pid attribute.
child_pid
Getter for parent attribute.
parent
Method overrided from parent class.
This method will use fork to create a child process to create the pulse bar.
The child process will have a signal handler for the USR1 signal to stop the pulse bar.
This method will send a USR1 signal with kill to the child process executing the pulse bar.
kill
The child process termination will be handled with waitpid.
waitpid
Term::Pulse
Term::YAP::iThread
Moo
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
Term::Pulse was originally created by Yen-Liang Chen, <alec at cpan.com>
This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This file is part of Siebel Monitoring Tools.
Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.
To install Term::YAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::YAP
CPAN shell
perl -MCPAN -e shell install Term::YAP
For more information on module installation, please visit the detailed CPAN module installation guide.