-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2
The purpose of this small (in scope and footprint) module is simple: spawn a subprocess asynchronously as efficiently and/or fast as possible. Basically the same as calling fork+exec (on POSIX), but hopefully faster than those two syscalls. Apart from fork overhead, this module also allows you to fork+exec programs when otherwise you couldn't - for example, when you use POSIX threads in your perl process then it generally isn't safe to call fork from perl, but it is safe to use this module to execute external processes. WWW: https://metacpan.org/dist/Proc-FastSpawn
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> | ||
|
||
PORTNAME= Proc-FastSpawn | ||
PORTVERSION= 1.2 | ||
CATEGORIES= devel perl5 | ||
MASTER_SITES= CPAN | ||
PKGNAMEPREFIX= p5- | ||
|
||
MAINTAINER= sunpoet@FreeBSD.org | ||
COMMENT= fork+exec, or spawn, a subprocess as quickly as possible | ||
|
||
LICENSE= ART10 GPLv1+ | ||
LICENSE_COMB= dual | ||
|
||
USES= perl5 | ||
USE_PERL5= configure | ||
|
||
post-install: | ||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Proc/FastSpawn/FastSpawn.so | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1632227460 | ||
SHA256 (Proc-FastSpawn-1.2.tar.gz) = fd525111e0f5e7de365b226b6b98b928a4293abe4928ed07d94f3aee12af2b2b | ||
SIZE (Proc-FastSpawn-1.2.tar.gz) = 6391 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
The purpose of this small (in scope and footprint) module is simple: spawn a | ||
subprocess asynchronously as efficiently and/or fast as possible. Basically the | ||
same as calling fork+exec (on POSIX), but hopefully faster than those two | ||
syscalls. | ||
|
||
Apart from fork overhead, this module also allows you to fork+exec programs when | ||
otherwise you couldn't - for example, when you use POSIX threads in your perl | ||
process then it generally isn't safe to call fork from perl, but it is safe to | ||
use this module to execute external processes. | ||
|
||
WWW: https://metacpan.org/dist/Proc-FastSpawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%%SITE_ARCH%%/Proc/FastSpawn.pm | ||
%%SITE_ARCH%%/auto/Proc/FastSpawn/FastSpawn.so | ||
%%PERL5_MAN3%%/Proc::FastSpawn.3.gz |