The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Term::YAP::Process - process based subclass of Term::YAP

SYNOPSIS

See parent class.

DESCRIPTION

This module is a fork base implementation of Term::YAP.

ATTRIBUTES

All from parent class plus the described below.

child_pid

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.

usr1

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.

enough

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.

METHODS

Some parent methods are overriden:

  • start

  • stop

And some others are implemented by this class.

is_enough

Getter for enough attribute.

get_usr1

Returns the value of usr1 attribute.

get_child_pid

Returns the value of the child_pid attribute.

is_parent

Getter for parent attribute.

start

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.

stop

Method overrided from parent class.

This method will send a USR1 signal with kill to the child process executing the pulse bar.

The child process termination will be handled with waitpid.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

Term::Pulse was originally created by Yen-Liang Chen, <alec at cpan.com>

COPYRIGHT AND LICENSE

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/>.