File tree Expand file tree Collapse file tree 4 files changed +84
-7
lines changed Expand file tree Collapse file tree 4 files changed +84
-7
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for Mojo-IOLoop-ReadWriteFork
2
2
3
- 0.06
3
+ 0.06 Mon Aug 11 16:59:18 2014
4
4
* Fix "Use of uninitialized value in numeric eq (==) at ReadWriteFork.pm line 182."
5
5
* Add support for write() before child process has started
6
6
* Add support for "drain" callback to write()
Original file line number Diff line number Diff line change 1
- #!include_default
1
+
2
+ #!start included /home/jhthorsen/.perlbrew/perls/perl-5.18.2/lib/5.18.2/ExtUtils/MANIFEST.SKIP
3
+ # Avoid version control files.
4
+ \bRCS\b
5
+ \bCVS\b
6
+ \bSCCS\b
7
+ ,v$
8
+ \B\.svn\b
9
+ \B\.git\b
10
+ \B\.gitignore\b
11
+ \b_darcs\b
12
+ \B\.cvsignore$
13
+
14
+ # Avoid VMS specific MakeMaker generated files
15
+ \bDescrip.MMS$
16
+ \bDESCRIP.MMS$
17
+ \bdescrip.mms$
18
+
19
+ # Avoid Makemaker generated and utility files.
20
+ \bMANIFEST\.bak
21
+ \bMakefile$
22
+ \bblib/
23
+ \bMakeMaker-\d
24
+ \bpm_to_blib\.ts$
25
+ \bpm_to_blib$
26
+ \bblibdirs\.ts$ # 6.18 through 6.25 generated this
27
+
28
+ # Avoid Module::Build generated and utility files.
29
+ \bBuild$
30
+ \b_build/
31
+ \bBuild.bat$
32
+ \bBuild.COM$
33
+ \bBUILD.COM$
34
+ \bbuild.com$
35
+
36
+ # Avoid temp and backup files.
37
+ ~$
38
+ \.old$
39
+ \#$
40
+ \b\.#
41
+ \.bak$
42
+ \.tmp$
43
+ \.#
44
+ \.rej$
45
+
46
+ # Avoid OS-specific files/dirs
47
+ # Mac OSX metadata
48
+ \B\.DS_Store
49
+ # Mac OSX SMB mount metadata files
50
+ \B\._
51
+
52
+ # Avoid Devel::Cover and Devel::CoverX::Covered files.
53
+ \bcover_db\b
54
+ \bcovered\b
55
+
56
+ # Avoid MYMETA files
57
+ ^MYMETA\.
58
+ #!end included /home/jhthorsen/.perlbrew/perls/perl-5.18.2/lib/5.18.2/ExtUtils/MANIFEST.SKIP
59
+
2
60
\.swp$
3
61
^local/
4
62
^MANIFEST\.SKIP
Original file line number Diff line number Diff line change 2
2
Mojo::IOLoop::ReadWriteFork - Fork a process and read/write from it
3
3
4
4
VERSION
5
- 0.05
5
+ 0.06
6
6
7
7
DESCRIPTION
8
8
This class enable you to fork children which you can write data to and
@@ -62,6 +62,16 @@ ATTRIBUTES
62
62
Mojo::IOLoop->singleton->reactor;
63
63
64
64
METHODS
65
+ close
66
+ $self = $self->close("stdin");
67
+
68
+ Close STDIN stream to the child process immediately.
69
+
70
+ run
71
+ $self = $self->run($program, @program_args);
72
+
73
+ Simpler version of "start".
74
+
65
75
start
66
76
$self->start(
67
77
program => sub { my @program_args = @_; ... },
@@ -82,9 +92,18 @@ METHODS
82
92
"pty".
83
93
84
94
write
85
- $self->write($buffer);
95
+ $self = $self->write($chunk);
96
+ $self = $self->write($chunk, $cb);
97
+
98
+ Used to write data to the child process STDIN. An optional callback will
99
+ be called once STDIN is drained.
86
100
87
- Used to write data to the child process.
101
+ Example:
102
+
103
+ $self->write("some data\n", sub {
104
+ my ($self) = @_;
105
+ $self->close;
106
+ });
88
107
89
108
kill
90
109
$bool = $self->kill;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Mojo::IOLoop::ReadWriteFork - Fork a process and read/write from it
6
6
7
7
=head1 VERSION
8
8
9
- 0.05
9
+ 0.06
10
10
11
11
=head1 DESCRIPTION
12
12
@@ -59,7 +59,7 @@ use constant CHUNK_SIZE => $ENV{MOJO_CHUNK_SIZE} || 131072;
59
59
use constant DEBUG => $ENV {MOJO_READWRITE_FORK_DEBUG } || 0;
60
60
use constant WAIT_PID_INTERVAL => $ENV {WAIT_PID_INTERVAL } || 0.01;
61
61
62
- our $VERSION = ' 0.05 ' ;
62
+ our $VERSION = ' 0.06 ' ;
63
63
64
64
=head1 EVENTS
65
65
You can’t perform that action at this time.
0 commit comments