Ubic::Daemon::OS - base class for os-specific daemon methods
- new
- Trivial constructor.
- pid2guid($pid)
- Get pid's guid. Guid is some kind of additional process identifier on
systems where we can think of one.
On Linux, for example, it's the timestamp in jiffies when
process started.
Returns undef if pid not found, throws exception on other
errors.
- pid2cmd($pid)
- Get process cmd line from pid.
- close_all_fh(@except)
- Close all file descriptors except ones specified as arguments.
- pid_exists($pid)
- Check if process with given pid exists.
Vyacheslav Matyukhin <mmcleric@yandex-team.ru>
This software is copyright (c) 2015 by Yandex LLC.
This is free software; you can redistribute it and/or modify it
under the same terms as the Perl 5 programming language system itself.