ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Proc-FastSpawn/FastSpawn.pm
(Generate patch)

Comparing Proc-FastSpawn/FastSpawn.pm (file contents):
Revision 1.5 by root, Sun Apr 7 01:33:20 2013 UTC vs.
Revision 1.6 by root, Sun Apr 28 00:49:43 2013 UTC

81 } 81 }
82 } 82 }
83} 83}
84 84
85BEGIN { 85BEGIN {
86 $VERSION = '1.0'; 86 $VERSION = '1.1';
87 87
88 our @ISA = qw(Exporter); 88 our @ISA = qw(Exporter);
89 our @EXPORT = qw(spawn fd_inherit); 89 our @EXPORT = qw(spawn spawnp fd_inherit);
90 require Exporter; 90 require Exporter;
91 91
92 require XSLoader; 92 require XSLoader;
93 XSLoader::load (__PACKAGE__, $VERSION); 93 XSLoader::load (__PACKAGE__, $VERSION);
94} 94}
100calling fork + execv, or execve. 100calling fork + execv, or execve.
101 101
102Returns the PID of the new process if successful. On any error, C<undef> 102Returns the PID of the new process if successful. On any error, C<undef>
103is currently returned. Failure to execution might or might not be reported 103is currently returned. Failure to execution might or might not be reported
104as C<undef>, or via a subprocess exit status of C<127>. 104as C<undef>, or via a subprocess exit status of C<127>.
105
106=item $pid = spawnp $file, \@argv[, \@envp]
107
108Like C<spawn>, but searches C<$file> in C<$ENV{PATH}> like the shell would
109do.
105 110
106=item fd_inherit $fileno[, $on] 111=item fd_inherit $fileno[, $on]
107 112
108File descriptors can be inherited by the spawned processes or not. This is 113File descriptors can be inherited by the spawned processes or not. This is
109decided on a per file descriptor basis. This module does nothing to any 114decided on a per file descriptor basis. This module does nothing to any

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines