Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Proc-Simple-1.32-1.30 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: perl-Proc-Simple Distribution: openSUSE Tumbleweed
Version: 1.32 Vendor: openSUSE
Release: 1.30 Build date: Fri Feb 2 17:19:30 2024
Group: Development/Libraries/Perl Build host: i03-ch1c
Size: 46052 Source RPM: perl-Proc-Simple-1.32-1.30.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/Proc-Simple/
Summary: Launch and Control Background Processes
The Proc::Simple package provides objects mimicing real-life processes from
a user's point of view. A new process object is created by

   $myproc = Proc::Simple->new();

Either external programs or perl subroutines can be launched and controlled
as processes in the background.

A 10-second sleep process, for example, can be launched as an external
program as in

   $myproc->start("/bin/sleep 10");    # or
   $myproc->start("/bin/sleep", "10");

or as a perl subroutine, as in

   sub mysleep { sleep(shift); }    # Define mysleep()
   $myproc->start(\&mysleep, 10);   # Launch it.

or even as

   $myproc->start(sub { sleep(10); });

The _start_ Method returns immediately after starting the specified process
in background, i.e. there's no blocking. It returns _1_ if the process has
been launched successfully and _0_ if not.

The _poll_ method checks if the process is still running

   $running = $myproc->poll();

and returns _1_ if it is, _0_ if it's not. Finally,

   $myproc->kill();

terminates the process by sending it the SIGTERM signal. As an option,
another signal can be specified.

   $myproc->kill("SIGUSR1");

sends the SIGUSR1 signal to the running process. _kill_ returns _1_ if it
succeeds in sending the signal, _0_ if it doesn't.

The methods are discussed in more detail in the next section.

A destructor is provided so that a signal can be sent to the forked
processes automatically should the process object be destroyed or if the
process exits. By default this behaviour is turned off (see the
kill_on_destroy and signal_on_destroy methods).

Provides

Requires

License

GPL-1.0+ or Artistic-1.0

Changelog

* Mon Nov 16 2015 coolo@suse.com
  - updated to 1.32
    see /usr/share/doc/packages/perl-Proc-Simple/Changes
      1.32 (2015/11/15)
      (ms) [rt.cpan.org #108215] open() calls now use the safe form.
* Fri Jun 14 2013 coolo@suse.com
  - updated to 1.31
      (ms) To better deal with the race condition in the
      previous release, kill the newly created child
      process first, then send a killpg to its process
      group and ignore the outcome.
      (ms) [RT 81203] Jim A Kessler reported a perl 5.16 issue
      with the "AutoLoader" line, so I went ahead and removed
      all references to "Exporter" and "AutoLoader", as
      Proc::Simple isn't using them at all.
* Mon Dec 05 2011 Sascha.Manns@open-slx.de
  - changed Licensefield to that one which cpanspec gives me
* Sun Dec 04 2011 Sascha.Manns@open-slx.de
  - fixed build for < 11.4
* Sun Dec 04 2011 Sascha.Manns@open-slx.de
  - initial package 1.30
    * created by cpanspec 1.78.06

Files

/usr/lib/perl5/vendor_perl/5.38.2/Proc
/usr/lib/perl5/vendor_perl/5.38.2/Proc/Simple.pm
/usr/share/doc/packages/perl-Proc-Simple
/usr/share/doc/packages/perl-Proc-Simple/Changes
/usr/share/doc/packages/perl-Proc-Simple/README
/usr/share/man/man3/Proc::Simple.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Mar 30 23:40:51 2024