NAME
XAS::Lib::Process::Unix - A mixin class for process management within the XAS environment
DESCRIPTION
This module is a mixin class to handle the needs for process management under a Unix like system.
METHODS
init_process
This method initializes the module so that it can function properly.
start_process
This method does the neccessary things to spawn a new process.
stat_process
This method returns the status of the process. These are the possible values.
- 6
-
This status indicates that the process is stopped, either by a job control signal or it is being traced.
- 5
-
This status indicates that the process is in a uninterruptible sleep, usually waiting for I/O.
- 4
-
Not implemented on Unix.
- 3
-
This status indicates that the process is running or runnable.
- 2
-
This indicates that the process is in a interruptible sleep, waiting for an event to complete.
- 1
-
This indicates that the process is a zombie. Terminated but not yet reaped.
- 0
-
This indicates that the process is in an unknown state.
stop_process
This method will send a 'TERM' signal to the process.
pause_process
This method will send a 'TSTP' signal to the process.
resume_process
This method will send a 'CONT' signal to the process.
kill_process
This method will send a 'KILL' signal to the process.
SEE ALSO
AUTHOR
Kevin L. Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
Copyright (C) 2015 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.