Debian Codegraph @

Changelog

raw
1 Revision history for Perl extension IPC::Run
2
3 20260402.0 Thu Apr 2 2026
4 Bug fixes:
5 - GH #271, GH #164 - Detect undefined command in arrayref at harness parse
6 time instead of deferring to start() (PR #272)
7 - pipe_writer drops input when data is the string "0" due to redundant
8 boolean test on input buffer (PR #264)
9 - Callback filter evaluates return in list context to distinguish empty
10 return from the string "0", preventing infinite loop on Win32 (PR #264)
11 - GH #240 - Skip pty output assertions on BSD/Darwin due to known pty
12 drain timing issues on short-lived children (PR #274)
13 - Implement proper Windows command-line parsing per Microsoft C/C++ rules,
14 fixing argument parsing failures with single-quoted strings containing
15 whitespace (PR #273)
16
17 Maintenance:
18 - Add shebang to eg/synopsis_scripting (PR #275)
19
20 20260401.0 Wed Apr 1 2026
21 Bug fixes:
22 - GH #240 - Require IO::Pty 1.25 which fixes stale pty slave fd after
23 close_terminal in child, replacing defensive workarounds (PR #241,
24 PR #266)
25 - GH #237 - Close Win32IO socket/pipe handles explicitly in _cleanup
26 to prevent handle leaks (PR #246)
27 - GH #242 - Handle $SIG{PIPE} set to 'DEFAULT' in _select_loop instead
28 of crashing (PR #244)
29 - Handle $SIG{CHLD} set to '' or 'DEFAULT' in _select_loop (PR #262)
30 - Fix PTYS typo in adopt() and missing TIMERS init in harness
31 constructor (PR #260)
32 - Handle PTY allocation failure gracefully in start() instead of
33 dying with an unhelpful error (PR #267)
34 - Correct Timer.pm POD typos, _parse_time error message, and remove
35 redundant parse call (PR #251)
36 - Prevent noexec probe from leaking TAP output in search_path_cache.t
37 (PR #247)
38
39 Improvements:
40 - Correct broken POD links and code examples in documentation (PR #252)
41
42 Maintenance:
43 - Update GitHub URLs from toddr/IPC-Run to cpan-authors/IPC-Run
44 (PR #263)
45 - Replace GPL v2 full text with standard "same terms as Perl" license
46 (PR #268)
47 - Add AI policy document (PR #248)
48 - Use File::Spec->devnull in autoflush.t for portability (PR #250)
49 - Skip search_path_cache.t on noexec temp filesystems (PR #247)
50 - Remove dead code from Run.pm (PR #266)
51
52 20260322.0 Sun Mar 22 2026
53 Bug fixes:
54 - GH #126 - Handle EAGAIN in _write() for non-blocking pipe writes (PR #221)
55 - GH #149 - Prevent fd leak in _do_kid_and_exit when TFD == KFD (PR #218)
56 - GH #131 - Suppress spurious "Filehandle STDIN reopened" warnings in child
57 when $^W=1 with pty redirection (PR #219)
58 - GH #116 - Make binmode the default on Win32 to prevent newline mangling of
59 binary data (PR #192)
60 - GH #82 - Avoid undef warning in _cleanup when fork fails (PR #197)
61 - GH #97 - Wrap coderef in eval in _do_kid_and_exit to prevent child process
62 from escaping into parent code path on die() (PR #193)
63 - GH #122 - Propagate CODE ref exceptions back to parent via error pipe
64 (PR #224)
65 - GH #57 - Close external input handles in parent after fork to prevent
66 hangs when child exits early (PR #226)
67 - GH #134 - Preserve $cur_kid when a Timer is encountered in harness(),
68 fixing "No command before 'init'" errors (PR #187)
69 - GH #124 - Restore compat for bare undef params in harness() (PR #190)
70 - GH #141 - Passing undef as stdin/stdout/stderr no longer dies (PR #184)
71 - GH #139 - Avoid "Modification of a read-only value" when passing undef
72 stdin (PR #185)
73 - GH #162 - Reject empty/undef command name in _search_path (PR #182)
74 - GH #154 - Limit input buffer chunk size to prevent exponential memory
75 growth when streaming data to slow consumers (PR #183)
76 - GH #128 - Silently ignore undef arguments passed as timeout to
77 harness() (PR #189)
78 - GH #133 - Correct two minor documentation issues in Run.pm (PR #188)
79 - GH #137 - Skip win32_compile.t when getprotobyname('tcp') is
80 unavailable (PR #186)
81 - GH #35 - Survive SIGPIPE when child exits before consuming all stdin
82 (PR #204)
83 - GH #92 - Handle EPIPE when child exits before consuming stdin (PR #195)
84 - GH #93 - Handle tied STDERR without FILENO in _debug_fd (PR #194)
85 - GH #85 - Invalidate path cache on $PATH change, add clearcache()
86 (PR #196)
87 - GH #50 - Support scalar ref for '>pipe' and '<pipe' operators (PR #201)
88 - GH #49 - Use $type in IO::new error message instead of $_ (PR #202)
89 - GH #66 - Fix <pipe documentation example order and equivalent pipe
90 example (PR #198)
91 - GH #65 - Suppress spurious numeric warning in result() and
92 results() (PR #199)
93 - GH #29 - Suppress numeric warnings from result() when SIGCHLD is
94 IGNORE (PR #205)
95 - GH #213 - Handle scalar refs in Win32IO pipe operators (PR #214)
96 - GH #215 - Remove blanket TODO from win32_newlines.t, keep only for
97 still-failing tests (PR #216)
98 - GH #169 - Prevent handle inheritance of caller-owned fds on
99 Win32 (PR #181, PR #211)
100 - rt.cpan.org #11215 - Enable kill_kill test 1 on Win32 (PR #207)
101 - GH #237 - Suppress filehandle warning during global destruction in
102 tied_stderr.t (PR #239)
103 - GH #236 - Resolve File::Temp cleanup warning on Windows CI (PR #238)
104 - GH #230 - Suppress Socket::IPPROTO_TCP redefined warning in
105 win32_compile.t (PR #235)
106 - GH #222 - Prevent tied_stderr.t from hanging on Win32 CI (PR #225)
107
108 Improvements:
109 - GH #178 - Add env option to set child process environment variables
110 without modifying parent %ENV (PR #179)
111 - GH #171 - Add started() method to query harness run state (PR #180)
112 - GH #169 - Add finished() method to distinguish exit-0 from
113 not-yet-exited (PR #181)
114 - GH #44 - Add pid(), pids(), is_running(), full_path(), full_paths()
115 convenience methods (PR #203)
116 - GH #64 - Add <blocking_pipe operator for blocking writes to child
117 stdin (PR #200)
118 - PR #212 - Add close_stdin() method to prevent unbounded memory growth
119 when streaming to long-running children
120
121 Maintenance:
122 - GH #208 - Consolidate CI into single testsuite.yml with dynamic Perl
123 version matrix (PR #209)
124 - PR #220 - Add CLAUDE.md with project guidelines for AI-assisted
125 development
126 - Add 5-minute timeout to all CI workflow steps
127 - GH #228 - Remove TODO from Win32 autoflush test and align with Unix
128 branch (PR #234)
129 - GH #223 - Clean up resolved TODO tests in win32_newlines.t (PR #227)
130 - GH #231 - Skip t/eintr.t early on Win32 to avoid SIGUSR1
131 warning (PR #233)
132 - GH #229 - Suppress File::Temp version-string warnings in test
133 suite (PR #232)
134
135 20250809.0 Sat Aug 9 2025
136 - Tests are good in dev version. Releasing to stable.
137
138 20250715.0_01 Tue Jul 15 2025
139 - #172 - Reduce delays in detecting child exit
140 - #174 - Add quickstart section at the top of the docs
141 - #177 - Retry _read() on EINTR, instead of losing pipe contents.
142 - In test suite, work around bug in NetBSD 10.
143
144 20231003.0 Mon Oct 2 2023
145 Windows now matches other platforms in that a child calling exit(N) causes
146 result() to return N and full_result() to return N << 8. On Windows, before
147 this change, result() was returning N >> 8, and full_result() was returning N.
148 Programs having workarounds for this may need to condition those workarounds on
149 $IPC::Run::VERSION.
150 - #157 - On Windows, avoid hang under IPCRUNDEBUG.
151 - Refresh "cpanfile" from Makefile.PL, to allow use on Windows.
152 - #163 - Normalize shebangs to /usr/bin/perl
153 - Fix or skip all tests recently seen to fail on Windows.
154 - Include t/result.t in releases.
155 - #168 - Make full_result() and result() Windows behavior match non-Windows.
156
157 20220807.0 Mon Aug 1 2022
158 If your applications rely on portability to Windows, see new documentation
159 sections "argument-passing rules are program-specific" and "batch files". This
160 release fixes bugs in runs of Windows programs that use standard command line
161 parsing rules. Runs of non-standard programs may require changes. Notable
162 non-standard programs include cmd.exe, cscript.exe, and Cygwin programs.
163 - #140 - skip t/pty.t test on NetBSD too
164 - Add strict/warnings
165 - #142 - Follow Windows argument quoting rules
166 - #146 - allow win32_newlines.t to actually run
167 - #150 - Make t/pty.t test pass on OpenBSD.
168 - #148 - Support Win32 commands having nonstandard command line parsing rules
169 - Support executing Win32 batch files.
170 - Add IPC::Run::Win32Process, for delivering nonstandard command lines.
171 - Fix reporting of Win32::Process::Create() errors.
172 - #156 - On Windows, avoid hang when closing read end of pipe.
173 - #155 - Ignore known test failure on msys. - t/windows_search_path.t
174 - Avoid warning with IPCRUNDEBUG, in Windows spawned children.
175 - Use $^X, not 'perl', in tests.
176 - Thanks to the New active developer: Noah Misch!
177
178 20200505.0 Tue May 5 2020
179 - #125 - Fix syntax errors in POD examples
180 - #127 - Switch Readonly testing requirement to a recommends
181 - #129 - Fix full_result to always return $?
182 - #136 - kill_kill: Immediately KILL the child process as documented for Win32.
183 - Switch to github actions for CI testing
184 - Re-structure shipped files into eg
185 - Move author tests into xt and test them separately.
186
187 20180523.0 Wed May 23 2018
188 - #99 - Fix using fd in child process when it happens to be the same number in
189 the child as it was in the parent.
190
191 0.99 Fri Mar 30 2018
192 - Fixes for windows unit tests so they skip or pass.
193 t/autoflush.t
194 t/readonly.t
195 t/run_stdin-callback-return-array.t
196
197 0.98 Thu Mar 29 2018
198 - Switch to using $!{EINTR}
199 - Honor umask for user/group permissions on a +rw file
200 - Remove commented code from RT 50739
201 - #63 - Patch for fixing _write on invalid objects
202 - #54 - Make slave the controlling terminal so more programs can be called from IPC::Run reliably
203 - #53 - Prevent Not a GLOB reference in close_terminal by untieing before close
204 - #46 - '&' closing the stdin of the right process.
205 - #41 - Do POSIX::_exit not ::exit
206 - #40 - Assure child Win32 processes have same priority as parent
207 - #38 - Add unit test for passing use of Readonly.pm
208 - #39 - Fix GLOB test in IPC::Run::IO->new
209 - #86 - Fix for memory leak [rt.cpan.org #57990]
210 - MANIFEST was updated. New tests may start shipping now.
211
212 0.97 Mon Mar 26 2018
213 - Update meta and POD to point to GitHub issues not RT.
214 - Update README with pod changes.
215 - Fix variable name in synopsis - [Github #47]
216 - Fix t/run.t to work on "perl in space" - [Github #100]
217
218 0.96 Fri May 12 2017
219 - Update bug tracker to https://github.com/toddr/IPC-Run/issues
220
221 0.95 Mon Apr 24 2017
222 - Spelling fixes
223 - doc fix: full_result returns $?, not $? >> 8
224 - Fix check for reaped PID in reap_nb
225 - Re-remove unnecessary use of UNIVERSAL
226
227 0.94_02 Thu Apr 14 2016
228 - Skip infinity test on perl below 5.8.9
229
230 0.94_01 Tue Apr 12 2016
231 - Enable Travis-CI integration for IPC::Run
232 - Use q{} and qq{} to fix problems with quotation in cmd.exe
233 - sync $VERSION across all files to address kwalitee
234 - RT 109243 - Stop side affect of altering flushing of STDOUT and STDERR
235 - CHILD_HANDLE should be closed with 'Close' to prevent a warning.
236 - require Win32API::File on Windows
237 - Better timer error message + an additional unit test
238 - Catching previously non-detected malformed time strings
239 - Let Timer accept all allowable perl numbers
240 - allow the OS to choose the ephemeral port to use
241 - Don't use version.pm to parse the perl version in Makefile.PL
242 - perltidy
243 - Do not import POSIX into local namespace (it's a memory hog)
244
245 0.94 Sun Dec 14 2014
246 - RT 100858 - Update License discrepancies.
247
248 0.93_01 Wed Dec 10 2014
249 - Many typo corrections from David Steinbrunner via github
250 - RT 20105 - t/pty.t fails on Solaris 10
251
252 0.93 Wed Dec 10 2014
253 - RT 100711 - Add aggressive exit to t/signal.t after skip_all to prevent failures.
254 - RT 97926 - Fix for run argument with spaces in path
255 - skip t/win32_compile.t on Android
256 - RT 86133 - TODO failing POD tests for IPC::Run
257
258 0.92 Thu Aug 30 2012
259 - Tests are good in dev version. Releasing to stable.
260
261 0.92_01 Wed 22 Aug 2012
262 - RT 59775 - Catching a signal during select() can lock up IPC::Run
263
264 0.91 Tue 14 Feb 2012
265 - Tests are good in dev version. Releasing to stable.
266
267 0.91_01 Mon 16 Jan 2012
268 - RT 57277 - Apply suggested 1 line fix for dev release to public.
269
270 0.90 Wed 29 Jun 2011
271 - RT 57277 - Add breaking test. No solution at present.
272 - RT 68623 - disable parallel tests on windows
273 - RT 43072 - Skip dragonfly platform on t/pty.t (hangs)
274 - RT 14078 - run() miscalculates length of UTF-8 strings
275 - RT 49693 - security patch for lib/IPC/Run/Win32IO.pm s/INADDR_ANY//
276 - RT 38193 - Fix error detection on non-English operating systems
277 - Add a blank doc entry for IPC::Run::Win32IO::poll to quiet windows pod parser errors
278 - RT 57190 - handle PATH environment variable not being defined. WILL NOT default to '.' since UNIX would not do this and the program has been behaving the UNIX way to date.
279
280 0.89 Wed 31 Mar 2010
281 - Revert extended tests to require "oslo consensus" variables - http://use.perl.org/~Alias/journal/36128
282 - Add IO::Pty to META.yml requirement This has been inconsistently depended on over the years in META.yml
283
284 0.88 Tue 30 Mar 2010
285 - Missed dangling isa in IPC::Run::Debug
286 - Fix retry for read of fh when I get "Resource temporarily unavailable."
287 It was previously pounding on the file handle with no rest 200 times then giving up.
288 On fast systems this wasn't long enough. I'm implementing select(undef, undef, 0.01)
289 to provide a more consistent retry among hardware and os.
290 - Fix POD indentation in IO.pm
291
292 0.87 Mon 29 Mar 2010
293 - Add doc type fixes - RT 56030 from carnil (Debian)
294 - Remove recommends for AUTHOR only modules
295 - add pod_coverage and simplify pod test.
296 - document undocumented public subs with TODO and best guess as to what they do.
297 - Explicitly recommend IO::Pty version number 1.08
298
299 0.86 Wed 24 Mar 2010
300 - Add all files to subversion for easier releases
301 - bump version on ALL files to 86
302
303 0.85 Mon 22 Mar 2010
304 - Remove use UNIVERSAL. - RT 51509
305 - fix pod for Win32Helper - RT 51695
306 - Better PATHEXT logic bug if cmd_name contains periods - RT 50739
307 - Enhance tests for run.t for better diagnostics - RT 47630
308
309 0.84 Mon 13 Jul 2009
310 - Add darwin to the list of known-bad platforms
311
312 0.83 Fri 10 Jul 2009
313 - Switch from command.com to cmd.exe so we work on 2008 or newer.
314
315 0.82 Thu 18 Dec 2008
316 - Moving changes in 0.81_01 to a production release
317
318 0.81_01 Wed 15 Oct 2008
319 - This is the first in a series of refactoring test releases.
320 - Removed Makefile.PL message noisily asking users to do CPAN Testers
321 dirty work.
322 - Simplified the Makefile.PL code a little.
323 - Upgraded all tests to Test::More
324 - Added a $VERSION for all modules
325 - Adding some missing POD sections
326 - Various other clean ups
327
328 0.80 (missing)
329 - IPC::Run::IO now retries on certain "temporarily unavailable" errors.
330 This should fix several reported issues with t/run.t, test 69.
331 Many thanks to < Eric (at) Scratch Computing (.com) > for the patch!
332 - Applied documentation patch from RT.
333 - Fixed documentation to work with '<' redirect
334
335 0.79 Wed Jan 19 15:39:00 PST 2005
336 - New maintainer: Richard Soderberg <[email protected]>
337 - Resolved several RT tickets
338 (4934, 8263, 8060, 8400, 8624, 5870, 4658, 8940, 1474, 4311)
339 - Skip certain tests on AIX and OpenBSD as they deadlock otherwise
340 - Applied AIX patch from ActiveState (#8263)
341 - Fixed t/run.t on OS X (#8940)
342 - Add check for EINTR to _read (#5870)
343 - FreeBSD uses fds up to 4 by default, fixed tests to start at 5 (#8060)
344
345 0.78 Tue Mar 9 01:49:25 EST 2004
346 - Removed all pseudohashes
347 - Require Win32::Process when on Win32 (<CORION a t cpan . org>)
348 - Retry the select() instead of croaking when EINTR occurs
349 (Ilya Martynov, ilya a t iponweb.net)
350 - This needs further testing and analysis, but works for
351 the submitter.
352
353 0.77 Fri Sep 26 15:36:56 EDT 2003
354 - Non-binmoded pipes are now s/\r//g on Win32
355 - Passes all tests on WinXPPro and WinNT
356 - Deadlocks somewhere shortly after process creation on Win2K
357 in some cases
358
359 0.76 (missing)
360 - Does not use pseudohashes for perls >= 5.9.0 (reported by several
361 users, patch by Nicholas Clark <[email protected]>)
362 - pumpable() is now exported (reported by [email protected])
363 - pumpable() now more thorough in checking for a dead child (reported
364 by [email protected])
365 - it checks for reapable processes when all pipes to the process
366 are paused
367 - pumpable() now yields the processor when all pipes to
368 - Distro layout improved: Run.pm and Run/... are now under
369 lib/IPC/...
370
371 0.75 Tue Jan 28 11:33:40 EST 2003
372 - Fix a bug that was causing _pipe() to seem to fail when feeding
373
374 0.74 Thu May 23 09:24:57 EDT 2002
375 - Skip a set of pty tests that deadlock on freebsd. Reported and
376 investigated by Rocco Caputo <[email protected]>. perldoc t/pty.t
377 for details.
378
379 0.73 Wed May 22 09:03:26 EDT 2002
380 - Improved Win32 PATH and PATHEXT search;
381 original patch by Ron Savage <[email protected]>
382
383 0.72 Thu May 9 10:25:55 EDT 2002
384 - Doc patch from [email protected]
385 - Backport Win32Helper to 5.00503 (compilation of this is
386 tested on Unix or it would not have been spotted,
387 not even by Matt Sergeant [email protected]).
388
389 0.71 Mon May 6 09:04:18 EDT 2002
390 - Fix the pesky run/t check for specific error string (test 134 at
391 the moment, bad file descriptor test) that keeps tripping up
392 cpantesters
393
394 0.70 Fri Apr 26 10:15:13 EDT 2002
395 - Massive performance improvements on Win32 See IPC::Run::Win32Helper's
396 optimize() documentation.
397 - moved data pump routine to IPC::Run::Win32Pump, now it loads much
398 faster.
399 - Where reasonably safe to do so, temporary files are used instead of
400 pipes+pumps.
401 - Setting $ENV{IPCRUNDEBUG}="notopt" can help find opportunities for
402 optimizing. See IPC::Run::Debug for details.
403 - Added 'noinherit => 1' option (parsed like 'debug => "basic") to
404 allow stdin, stdout, and stderr to not be inherited by the child.
405 - Factored debugging out in to IPC::Run::Debug so Win32Pump.pm need not load
406 IPC::Run to get it.
407 - Debugging code can be compile-time optimized away by setting
408 $ENV{IPCRUNDEBUG} = "none" (or 0) before IPC::Run::Debug is first loaded
409 causes all _debug... code to be optimized away before runtime.
410 - Moved some functionality from IPC::Run in to IPC::Run::IO to allow
411 IPC::Run::Win32IO to alter IPC::Run's behavior. More of this should
412 happen; IPC::Run has grown too bloaty.
413 - All the hokey hacky "manual imports" of IPC::Run's old _debug...()
414 functions has been replaced by "use IPC::Run::Debug".
415 - All the hokey hacky "manual imports" of IPC::Run's Win32_MODE()
416 constant has been replaced by importing it from IPC::Run.
417 - Cleaned up IPC::Run::Win32*'s debugging levels a bit to unclutter
418 "basic" and "data" debugging level output.
419 - exception handling in _open_pipes no longer silently eats exceptions.
420
421 0.67 Fri Apr 19 12:14:02 EDT 2002
422 - remove _q from the examples in the POD - it was inconsistent (the
423 examples had bugs) and didn't help readability. Spotted by
424 [email protected].
425
426 0.66 Wed Mar 27 07:42:27 EST 2002
427 - Really dumb down that bad file descriptor test last tweaked in 0.64;
428 the CLI does not script well under internationalization.
429
430 0.65 (unreleased)
431 - Mostly focused on Win32
432 - pass filehandles to pumpers by number on the command line to avoid
433 - use 2 arg binmode to force socket handles into/out of binmode
434 - improve t/binmode.t
435 - TODO: test ^Z and \000 pass-through.
436
437 0.64 Wed Mar 13 11:04:23 EST 2002
438 - Fix a test that fails on AIX because it uses a different message for
439 "Bad file descriptor". Reported by "Dave Gomboc" <[email protected]>
440 - If IO::Pty is loadable, require IO::Pty 1.00 or later.
441
442 0.63 Wed Feb 27 12:25:22 EST 2002
443 - the select loop will now poll (with logarithmic fallback) when all
444 I/O is closed but we have children running. Problem report by
445 "William R. Pearson" <[email protected]>.
446
447 0.62 Tue Jan 1 16:40:54 EST 2002
448 - Have all children close all file descriptors opened by the parent
449 harness, otherwise children of different harnesses can unwittingly
450 keep open fds the parent closes, thus preventing other children
451 from seeing them close. Reported by Blair Zajac <[email protected]>.
452
453 0.61 Fri Dec 7 05:21:28 EST 2001
454 - Fix up signal.t to not fail due to printing not working quite right in
455 signal handlers. Spotted in the wild by Blair Zajac <[email protected]>.
456
457 0.6 Thu Dec 6 04:36:57 EST 2001
458 - Get binmode--(">", binary) and ("<", binary)--working on Win32.
459
460 0.56 Sun Dec 2 09:18:19 EST 2001
461 - IPC::Run now throws exceptions from the post-fork, pre-exec child process
462 back to the parent process using an additional pipe. This pipe also
463 is used to pause the parent until the child performs the exec(), so
464 that (when a new version of IO::Pty implements it) pty creation can
465 be completed before the parent tries to write to it.
466
467 0.55 Sat Dec 1 17:15:02 EST 2001
468 - Fixups to Win32 code to get it compiling ok (added t/win32_compile.t
469 to ensure that Win32Helper.pm at least compiles Ok).
470 - Minor tweak to deal with "_" in $IO::Pty::VERSION, which is "0.92_04",
471 including quotes, in the current version.
472
473 0.54 Fri Nov 30 11:46:05 EST 2001
474 - Win32 SUPPORT!!!!!
475 - Added support for env. var. IPCRUNDEBUG=1 (or 2, 3, 4) to make it
476 easier for users to debug the test suite.
477 - Adapt to IO::Pty 0.91, which creates slave fds in new(), forcing us to
478 close them in the parent after the fork(). We don't check for IO::Pty's
479 version number, perhaps we should (waiting for a response from Roland
480 Giersig <[email protected]> about what he intends, since this could affect
481 all users of older IO::Ptys that upgrade).
482 - Add a sleep(1) to allow the slave pty to be initted, otherwise a premature
483 write() to the slave's input can be lost. This is a bogus hack, but
484 IO::Pty 0.9x should fix it when it's released.
485 - removed spurious use Errno qw( EAGAIN ), since this causes warnings with
486 perl5.00505. Reported by Christian Jaeger <[email protected]>
487 (pflanze).
488 - IPC::Run::start() now does a kill_kill() if called on an already started
489 harness. This is needed on Win32 to pass the test suite, but it's also a
490 nice thing.
491 - The debug file descriptor is built by dup()ing STDERR in the parent and
492 passing it to the kids. This keeps us from needing to worry about
493 debugging info in the select() loop and removes unnecessary complications.
494 Still needs a bit of work: it should be dup()ed in _open_pipes and its
495 value should be stored in the harness, not a global.
496 - child processes are now a little more clearly identified in debug output.
497 - Some debugging messages are now clearer.
498 - debugging is now almost ready to be compile-time optimized away.
499 - "time since script start" is now shown when debugging. We should check to
500 see if Time::HiRes is loaded and make this more accurate.
501 - pipe opens are now down in Run::IO::open_pipe().
502 - map_fds won't complain about no open fds unnecessarily (which was rare,
503 but still).
504 - the debug fd is now determined per-harness, not globally. This requires a
505 bit of a hack (since I don't want to require $harness->_debug everywhere
506 _debug might be called), but it seems worthwhile.
507
508 0.5 Sat Nov 10 21:32:58 EST 2001
509 - confess() when undef passed to _exec()
510 - Cleaned up some POD and code comments.
511 - Added patch to make the write side of pipes & ptys that IPC::Run must
512 write to be non-blocking. Added a test for pipes, but Boris reports that
513 Solaris 8 something seems to still block in the pty case, though Linux
514 does not, so I did not add a test for that case. Probably should add one
515 and complain bitterly if it fails (rather than actually failing the tests)
516 and ptys are used. Patch from Borislav Deianov
517 <[email protected]>.
518 - Added a patch to invalidate the search path cache if the file is no longer
519 executable, also from Borislav Deianov <[email protected]>
520 - Started implementation of an adopt() external call that would let you
521 aggregate harnesses, and a t/adopt.t, but different children need to
522 properly close all FDs: they're inheriting each other's FDs and not
523 properly closing them.
524 - Close $debug_fd in &sub coprocesses.
525 - Document the problems with &sub coprocesses.
526 - Fixed fork error return detection to actually work, spotted by Dave
527 Mitchell <[email protected]>.
528 - Give errors if a path with a directory separator is passed in if the
529 indicated filename does not exist, is not a file, or is not executable.
530 They're unixish errors, but hey...
531 - Allowed harness \@cmd, '>', $foo, timeout 10 ; to parse (it was mistakenly
532 thinking I wanted to send output to the IPC::Run::Timer created by
533 timeout().
534 - pumpable() now returns true if there are any kids left alive, so that
535 timers may continue to run.
536 - A timeout of 1 second is forced if there are no I/O pipes left open, so
537 that the select loop won't hang in select() if there is no I/O to do.
538 Perhaps should only do that if there are timers.
539 - Added a signal() to send specified signals to processes. Chose this over
540 the more traditional Unix kill() to avoid people thinking that kill()
541 should kill off processes.
542 - Added kill_kill() which does kill off processes and clean up the harness.
543 Sends TERM then (if need be) waits and sends KILL.
544 - timeouts now work.
545 - Removed eval{}s from a few subs, we were being over protective.
546 - Preserve pos() across updates to scalars we append to, so m//g
547 matches will work.
548 - Cleaned up the examples/
549 - Added abuse/ for (mostly user contributed) scripts that I can use as
550 a manual regression test. Most/all are reflected in t/*.t, but not
551 verbatim, so it's good to have to originals around in case they
552 happen to trigger something t/*.t miss.
553 - Cleaned up SYNOPSIS a bit: it was too scary. Still is, but less so.
554
555 0.44 Mon Oct 2 17:20:29 EDT 2000
556 - Commented out all code dealing with select()'s exception file descriptor
557 mask. Exceptions are vaguely defined and until somebody asks for them
558 I don't want to do anything automatic with them. Croaking on them
559 was certainly a bad idea: FreeBSD and some other platforms raise an
560 exception when a pipe is closed, even if there's data in the pipe.
561 IPC::Run closes a pipe filehandle if it sees sysread() return an
562 error or 0 bytes read.
563
564 0.43 Thu Aug 17 23:26:34 EDT 2000
565 - Added flushing of STDOUT and STDERR before fork()/spawn() so that the
566 children won't inherit bufferloads of unflushed output. This seems
567 to be automatic in 5.6.0, but can cause loads of grief in 5.00503.
568 I wish there were a way to flush all open filehandles, like stdio's
569 fflush( NULL ) ;
570
571 0.42 Thu Aug 17 23:26:34 EDT 2000
572 - Worked around pseudo-hash features not implemented in perl5.00503
573 - Deprecated passing hashes of options in favor of just passing
574 name-value pairs.
575
576 0.41 (missing)
577 - Added result, results, full_result, full_results. I added so many
578 variations because I expect that result and full_result are the most
579 likely to get a lot of use, but I wanted to be able to return a list
580 as well, without misusing wantarray.
581
582 0.4 Thu Jun 15 14:59:22 EDT 2000
583 - Added IPC::Run::IO and IPC::Run::Timer, bunches of tests. IPC::Run
584 can now do more than just run child processes.
585 - Scribbled more documentation. Needs a good edit.
586 - Fixed some minor bugs here and there.
587
588 0.34 Thu Jun 8 06:39:23 EDT 2000
589 - Fixed bug in t/pty.t that prevented it from noticing IO::Pty
590 - Converted IPC::Run to use fields.
591
592 0.32 Thu Jun 8 06:15:17 EDT 2000
593 - Added warning about missing IO::Pty in MakeMaker.PL. Thought about
594 making it a prerequisite, but it's not: IPC::Run can do pipes, etc,
595 if it's not found, and IO::Pty is more unix-specific than IPC::Run is.
596 What I'd really like is an 'ENABLERS' section to MakeMaker.PL that
597 tells CPAN.pm to try to install it but not to stress if it can't.
598 - t/pty.t skips all tests if require IO::Pty fails.
599
600 0.31 Tue Jun 6 01:54:59 EDT 2000
601 - t/pty.t should now report what was received when checking it against
602 a regex. This is because 0.3's failing a few tests on ppc-linux
603 and the ok( $out =~ /.../ ) ; wasn't giving me enough info. I chose
604 the 1 arg form due to older perl dists' Test.pm not grokking
605 ok( $out, qr// ) ;. I should really do this to t/*.t, but I'm tired.
606 - Removed the misfired Run/Pty.pm from the dist.
607
608 0.3 Sat Jun 3 08:33:17 EDT 2000
609 - Changed spelling of '<|<' and '>|>' to '<pipe' and '>pipe'. This
610 is to make it less confusing (I hope), since '>|' is a valid construct
611 in some shells with totally unrelated semantics, and I plan on adding
612 it to IPC::Run if a noclobber option ever makes it in.
613 - Added '<pty<' and '>pty>' operators.
614
615 0.21 Fri Jun 2 12:49:08 EDT 2000
616 - Added some advice for dealing with obstinate children
617 - Converted many methods to plain subs for simplicity & performance
618 - Converted to using local $debug to control debugging status for
619 simplicity's sake. Don't know about performance effects, since
620 dynamic scope lookups can be slow.
621
622 0.2 Thu Jun 1 01:48:29 EDT 2000
623 - Undid the creation of a pipe when passing a \*FOO or an IO::Handle
624 ref and added '<|<', \*IN and '>|>', \*OUT syntax instead. This was
625 because some very subtle bugs might have occurred if \*FOO was left
626 in the wrong opened/closed state before calling run(), start() or
627 harness(). Now, \*FOO must be open before the start() call, and
628 '<|<' and '>|>' will close \*IN or \*OUT (or whatever) and open
629 a pipe on it. This is analogous to IPC/Open{2,3}.pm behaviors.
630 - Added eg/factorial_scalar and eg/runsh. Rewrote eg/factorial_pipe.
631 - Fixed bug that was preventing input scalar refs (ie input for the
632 child process) from ever being read from a second time. This
633 caused pump() to hang.
634 - Cleaned up calculation and use of timeout values so that when
635 select() times out, it isn't called again. It's now adding one
636 second to the timeout value because time() resolution is 1 second
637 and we want to guarantee a minimum timeout even when we sample the
638 start time at the end of a second
639 - minor name changes to some field names to make the code marginally
640 less obscure.
641 - Fixed the MakeMaker settings and the directory layout so "make install"
642 actually works.
643
644 0.1 Tue Apr 25 22:10:07 2000
645 - Initial release