Skip to content

Commit

Permalink
devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2
Browse files Browse the repository at this point in the history
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
sunpoet committed Sep 21, 2021
1 parent 1b0219a commit 8b87ab8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,7 @@
SUBDIR += p5-Proc-BackOff
SUBDIR += p5-Proc-Background
SUBDIR += p5-Proc-Daemon
SUBDIR += p5-Proc-FastSpawn
SUBDIR += p5-Proc-Find-Parents
SUBDIR += p5-Proc-Fork
SUBDIR += p5-Proc-Guard
Expand Down
21 changes: 21 additions & 0 deletions devel/p5-Proc-FastSpawn/Makefile
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>
3 changes: 3 additions & 0 deletions devel/p5-Proc-FastSpawn/distinfo
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
11 changes: 11 additions & 0 deletions devel/p5-Proc-FastSpawn/pkg-descr
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
3 changes: 3 additions & 0 deletions devel/p5-Proc-FastSpawn/pkg-plist
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

0 comments on commit 8b87ab8

Please sign in to comment.