| 1 |
Sat Apr 22 17:27:59 EDT 2023 |
| 2 |
|
| 3 |
Version 1.32 |
| 4 |
|
| 5 |
* Fix fatal bug in Win32 constructor from changes in 1.31 |
| 6 |
|
| 7 |
Mon Apr 17 14:33:00 EDT 2023 |
| 8 |
|
| 9 |
Version 1.31 |
| 10 |
|
| 11 |
* Allow { exe => undef } on Win32 for default OS determination of |
| 12 |
what to execute. |
| 13 |
* Avoid potential side effects from signal handlers when preparing |
| 14 |
to exec on Unix |
| 15 |
* Better perl 5.6 compatibility |
| 16 |
* Various documentation improvements |
| 17 |
|
| 18 |
Wed Oct 20 15:38:00 JST 2021 |
| 19 |
|
| 20 |
Version 1.30 |
| 21 |
|
| 22 |
* New options 'command','exe' dis-ambiguate the problems around |
| 23 |
determining how to parse the command line and determine the |
| 24 |
executable name. It also allows faking argv[0]. They can be |
| 25 |
inspected after program launch via same-named attributes. |
| 26 |
* New options 'stdin','stdout','stderr' allow initializing handles |
| 27 |
of the child process. |
| 28 |
* New option 'cwd' sets initial current directory of the child |
| 29 |
* Renamed '->die' to '->terminate' and options 'die_upon_destroy' |
| 30 |
to 'autoterminate' (but preserved back-compat) |
| 31 |
* Option 'autoterminate' now has an attribute accessor and can be |
| 32 |
toggled on the fly. |
| 33 |
* New option 'autodie' throws exceptions from constructor instead |
| 34 |
of returning undef. |
| 35 |
* On Unix, use a pipe to capture error messages all the way through |
| 36 |
to the exec() call. Reap exec() failures without exposing the |
| 37 |
forked process to the user. |
| 38 |
* Add methods ->suspend and ->resume |
| 39 |
* Mitigate bug in timeout_system where a system clock change could |
| 40 |
increase the wait-time indefinitely. |
| 41 |
|
| 42 |
Fri Jul 9 07:33:00 JST 2021 |
| 43 |
|
| 44 |
Version 1.22 |
| 45 |
|
| 46 |
* Fix bug in timeout of $p->wait on Unix perl earlier than 5.12 |
| 47 |
where Time::HiRes::alarm was failing to set the alarm. |
| 48 |
* Fix test case 47 (which was failing on about 5% of systems) |
| 49 |
by waiting longer for the process to exit |
| 50 |
|
| 51 |
Tue Nov 5 17:39:00 EST 2019 |
| 52 |
|
| 53 |
Version 1.21 |
| 54 |
|
| 55 |
* Fix bug in timeout_system that caused it to wait the maximum |
| 56 |
duration on every call. |
| 57 |
|
| 58 |
Sun Nov 3 19:34:00 EST 2019 |
| 59 |
|
| 60 |
Version 1.20 |
| 61 |
|
| 62 |
* More correct parsing of Win32 arguments to determine |
| 63 |
executable name, and more correct quoting when building |
| 64 |
command line when starting from an argv. |
| 65 |
* More correct use of Unix signals during ->die, but also give |
| 66 |
user the ability to specify a custom sequence of signals. |
| 67 |
* Emulate Unix exit status of SIGKILL on Win32 when process was |
| 68 |
ended using $proc->Kill |
| 69 |
* New attributes ->exit_code and ->exit_signal help inspect the |
| 70 |
wstat value returned by ->wait. |
| 71 |
* Fix Win32 path separator used when searching %PATH% for exe |
| 72 |
* Don't leak changes to $? when calling ->die() during DESTROY |
| 73 |
* Make sure all die_upon_destroy happens before global destruction |
| 74 |
* Re-tooled with Dist::Zilla for modern generation of MYMETA and |
| 75 |
automatic version, license, etc. |
| 76 |
|
| 77 |
Sun Jul 5 15:40:32 PDT 2009 |
| 78 |
|
| 79 |
* Release version 1.10. |
| 80 |
|
| 81 |
Sun Jul 5 15:15:12 PDT 2009 |
| 82 |
|
| 83 |
* Makefile.PL: Resolve |
| 84 |
https://rt.cpan.org/Ticket/Display.html?id=47100 by passing |
| 85 |
PREREQ_PM to WriteMakefile(). |
| 86 |
Patch by: Tomas Doran <[email protected]> |
| 87 |
|
| 88 |
Wed Jul 1 22:58:13 PDT 2009 |
| 89 |
|
| 90 |
* README: Correct the URL to the Subversion repository for |
| 91 |
this project. |
| 92 |
|
| 93 |
Wed Jul 1 22:46:11 PDT 2009 |
| 94 |
|
| 95 |
* Release version 1.09. |
| 96 |
|
| 97 |
Wed Jul 1 22:36:06 PDT 2009 |
| 98 |
|
| 99 |
* Makefile.PL: Switch from die() to warn() if Win32::Process |
| 100 |
isn't installed into a warning. When running under CPAN.pm, |
| 101 |
the die causes the install to fail before processing |
| 102 |
dependencies. Reducing this to a warning means that CPAN |
| 103 |
will cleanly install Proc::Background and Win32::Process |
| 104 |
with no user intervention needed in strawberry perl or even |
| 105 |
ActiveState if you have a working make. |
| 106 |
Patch by: Tomas Doran <[email protected]> |
| 107 |
|
| 108 |
Sat Dec 7 09:41:58 PST 2002 |
| 109 |
|
| 110 |
* Release version 1.08. |
| 111 |
|
| 112 |
Sat Dec 7 09:33:53 PST 2002 <[email protected]> Blair Zajac |
| 113 |
|
| 114 |
* lib/Proc/Background/Win32.pm (_new): When more than one |
| 115 |
argument is passed to _new in @_, each array element may be |
| 116 |
quoted to protect whitespace so that the final assembly of |
| 117 |
the individual arguments into one string, using "@_", that |
| 118 |
is passed to Win32::Process::Create works. An empty string |
| 119 |
was not being protected and was lost from the command line |
| 120 |
arguments. Bug fix by Jim Hahn <[email protected]>. |
| 121 |
* README: Note that this package is hosted in a Subversion |
| 122 |
repository and give its URL. |
| 123 |
* Changes: Renamed from CHANGES. |
| 124 |
|
| 125 |
Sat Apr 20 19:27:53 PDT 2002 <[email protected]> Blair Zajac |
| 126 |
|
| 127 |
* Release version 1.07. |
| 128 |
|
| 129 |
Sat Apr 20 18:55:46 PDT 2002 <[email protected]> Blair Zajac |
| 130 |
|
| 131 |
* lib/Proc/Background/Win32.pm: Fix a bug spotted by John |
| 132 |
Kingsley <[email protected]> on Windows platforms where if |
| 133 |
Proc::Background->new is passed an absolute pathname to a |
| 134 |
program containing whitespace, then Win32::Process::Create |
| 135 |
will not be able to create the new process. The solution is |
| 136 |
use Win32::GetShortPathName to convert the long pathname |
| 137 |
into a short pathname with no spaces. Also eval "use |
| 138 |
Win32' to load Win32::GetShortPathName. |
| 139 |
|
| 140 |
Sat Apr 20 18:35:57 PDT 2002 <[email protected]> Blair Zajac |
| 141 |
|
| 142 |
* lib/Proc/Background.pm: Fix a bug spotted by Ruben Diez |
| 143 |
<[email protected]> in _resolve_path where if one of the |
| 144 |
directories in the PATH had a directory with the same name |
| 145 |
as the program being searched for, the directory would be |
| 146 |
used because they typically have execute permissions. Now |
| 147 |
check for a file and the execute permissions before using |
| 148 |
the file. |
| 149 |
|
| 150 |
Sat Apr 20 18:19:27 PDT 2002 <[email protected]> Blair Zajac |
| 151 |
|
| 152 |
* lib/Proc/Background.pm: Fix all cases where a string |
| 153 |
containing '0' would fail a test even though it should pass. |
| 154 |
* lib/Proc/Background/Unix.pm: Ditto. |
| 155 |
* lib/Proc/Background/Win32.pm: Ditto. |
| 156 |
|
| 157 |
Sat Sep 8 12:20:01 PDT 2001 <[email protected]> Blair Zajac |
| 158 |
|
| 159 |
* Release version 1.06. |
| 160 |
|
| 161 |
Sat Sep 8 12:19:39 PDT 2001 <[email protected]> Blair Zajac |
| 162 |
|
| 163 |
* t/01proc.t: On Cygwin test 46 fails intermittently when it |
| 164 |
tries to see if the spawned process is running by using |
| 165 |
kill(0, $pid). It's not clear why this would happen, but |
| 166 |
sometimes kill returns 0, even though the process should be |
| 167 |
running. Maybe it's the Cygwin layer that is causing the |
| 168 |
problem. Adding a one second sleep before calling kill |
| 169 |
seems to cause the test to pass. |
| 170 |
* t/sleep_exit.t: The sleep argument was being set to 1 even |
| 171 |
if the command line argument was 0 because $sleep was |
| 172 |
checked for trueness, not if it was defined. Now check |
| 173 |
$sleep and $exit_status for being defined before setting |
| 174 |
them. |
| 175 |
* README: Update the instructions for checking and installing |
| 176 |
Win32::Process for Perl on Windows. |
| 177 |
|
| 178 |
Tue Aug 28 12:54:44 PDT 2001 <[email protected]> Blair Zajac |
| 179 |
|
| 180 |
* Release version 1.05. |
| 181 |
|
| 182 |
Tue Aug 28 12:34:15 PDT 2001 <[email protected]> Blair Zajac |
| 183 |
|
| 184 |
* lib/Proc/Background.pm: The $VERSION variable was being set |
| 185 |
using |
| 186 |
|
| 187 |
$VERSION = substr q$Revision: 1.05 $, 10;' |
| 188 |
|
| 189 |
which did not properly set $VERSION to a numeric value in |
| 190 |
Perl 5.6.1 probably due to the trailing ' ' character after |
| 191 |
the number. This resulted in 'use Proc::Background |
| 192 |
1.04' failing to force Perl to use version 1.04 or newer of |
| 193 |
Proc::Background even if 1.03 or older was installed because |
| 194 |
$VERSION was set using substr and Perl would not consider |
| 195 |
$VERSION to be set. Now use the longer but effective: |
| 196 |
|
| 197 |
$VERSION = sprintf '%d.%02d', '$Revision: 1.05 $' =~ /(\d+)\.(\d+)/; |
| 198 |
|
| 199 |
* lib/Proc/Background/Unix.pm: Ditto. |
| 200 |
* lib/Proc/Background/Win32.pm: Ditto. |
| 201 |
|
| 202 |
Thu Aug 16 14:36:39 PDT 2001 <[email protected]> Blair Zajac |
| 203 |
|
| 204 |
* Release version 1.04. |
| 205 |
|
| 206 |
Thu Aug 16 14:29:14 PDT 2001 <[email protected]> Blair Zajac |
| 207 |
|
| 208 |
* lib/Proc/Background.pm: When new is passed an incorrect |
| 209 |
number of arguments, do confess using the class passed to |
| 210 |
new, rather use the hardwired Proc::Background class which |
| 211 |
will make error messages easier to understand since module |
| 212 |
complaining about the error will be the correct one. |
| 213 |
* lib/Proc/Background/Unix.pm: Ditto, except for _new, not |
| 214 |
new. |
| 215 |
* lib/Proc/Background/Win32.pm: Ditto, except for _new, not |
| 216 |
new. |
| 217 |
|
| 218 |
Thu Aug 16 14:00:41 PDT 2001 <[email protected]> Blair Zajac |
| 219 |
|
| 220 |
* lib/Proc/Background.pm: Proc::Background::new can accept a |
| 221 |
reference to a hash as its first argument which contains |
| 222 |
key/value pairs to modify Proc::Background's behavior. |
| 223 |
Currently the only key understood is `die_upon_destroy' |
| 224 |
which has the process killed via die() when the |
| 225 |
Proc::Background object is being DESTROY'ed. |
| 226 |
* t/01proc.t: Add tests to test the new options behavior. |
| 227 |
|
| 228 |
Thu Aug 16 13:30:23 PDT 2001 <[email protected]> Blair Zajac |
| 229 |
|
| 230 |
* lib/Proc/Background.pm: No longer use cluck and return undef |
| 231 |
to warn about invalid arguments to function calls. Instead |
| 232 |
just call confess to print the call stack and quit the |
| 233 |
script. |
| 234 |
* lib/Proc/Background/Unix.pm: Ditto. |
| 235 |
* lib/Proc/Background/Win32.pm: Ditto. |
| 236 |
|
| 237 |
Tue Aug 14 22:50:14 PDT 2001 <[email protected]> Blair Zajac |
| 238 |
|
| 239 |
* lib/Proc/Background/Win32.pm: Remove an unnecessary loop |
| 240 |
label in _die. |
| 241 |
* lib/Proc/Background.pm: Update the documentation to be |
| 242 |
clearer. |
| 243 |
* README: Remove the reference to my FTP site, as it is no |
| 244 |
longer being used. |
| 245 |
* README: Update all references to Blair Zajac's email |
| 246 |
addresses to [email protected]. |
| 247 |
* CHANGES: Ditto. |
| 248 |
* lib/Proc/Background/Unix.pm: Ditto. |
| 249 |
* lib/Proc/Background/Win32.pm: Ditto. |
| 250 |
* lib/Proc/Background.pm: Ditto. |
| 251 |
|
| 252 |
Sun Feb 4 13:54:37 PST 2001 <[email protected]> Blair Zajac |
| 253 |
|
| 254 |
* Release version 1.03. |
| 255 |
|
| 256 |
Sun Feb 4 11:50:15 PST 2001 <[email protected]> Blair Zajac |
| 257 |
|
| 258 |
* Add a new command line option to timed-process, -e, that |
| 259 |
takes an integer argument. This value sets the exit value |
| 260 |
timed-process uses for its exit call when it has to kill the |
| 261 |
given program because the timeout elapsed. This value is |
| 262 |
not used if the process exits before the timeout expires. |
| 263 |
* t/01proc.t: Add tests for for the timed-process script. |
| 264 |
|
| 265 |
Sat Feb 3 14:21:32 PST 2001 <[email protected]> Blair Zajac |
| 266 |
|
| 267 |
* Change all occurrences of Proc::Generic, which was the |
| 268 |
original name of this module, with Proc::Background in every |
| 269 |
file in the module. This includes fixing the timed-process |
| 270 |
script which used Proc::Generic instead of Proc::Background. |
| 271 |
|
| 272 |
Mon Jan 15 16:05:04 PST 2001 <[email protected]> Blair Zajac |
| 273 |
|
| 274 |
* Release version 1.02. |
| 275 |
|
| 276 |
Mon Jan 15 10:32:59 PST 2001 <[email protected]> Blair Zajac |
| 277 |
|
| 278 |
* Make Proc::Background::new flexible enough to behave in the |
| 279 |
same manner as exec() or system() do when passed either a |
| 280 |
single or multiple arguments. When the command to put in |
| 281 |
the background run is passed as an array with two or more |
| 282 |
elements, run the command directly without passing the |
| 283 |
command through the shell. When a single argument is passed |
| 284 |
to Proc::Background::new, pass the command through the |
| 285 |
shell. Add a new test to the test suite to check a command |
| 286 |
passed as a single argument to Proc::Background::new. |
| 287 |
* Remove 'Unrecognized escape \w passed through at |
| 288 |
Background.pm line 30' warning when using Perl 5.6.0. |
| 289 |
|
| 290 |
Wed Jun 21 09:51:37 PDT 2000 <[email protected]> Blair Zajac |
| 291 |
|
| 292 |
* Release version 1.01. |
| 293 |
|
| 294 |
Wed Jun 21 09:47:33 PDT 2000 <[email protected]> Blair Zajac |
| 295 |
|
| 296 |
* Proc::Background::Win32 used to only protect arguments that |
| 297 |
contained he space character by placing "'s around the |
| 298 |
argument. Now, make sure that each individual argument to |
| 299 |
Proc::Backgrond ends up going to the Windows shell in such a |
| 300 |
way that the shell sees the argument as a single |
| 301 |
argument. This means escaping "'s that are not already |
| 302 |
escaped and placing "'s around the argument if it matches |
| 303 |
\s. This will protect the string if it finds a \s in it and |
| 304 |
not just a space. |
| 305 |
|
| 306 |
Thu Apr 20 14:46:31 PDT 2000 <[email protected]> Blair Zajac |
| 307 |
|
| 308 |
* Release version 1.00. |
| 309 |
|
| 310 |
Thu Apr 20 14:40:11 PDT 2000 <[email protected]> Blair Zajac |
| 311 |
|
| 312 |
* In certain circumstances on older Perls, Proc::Background |
| 313 |
would complain that @_ could not be modified since it is a |
| 314 |
read only variable. Make a copy of @_ and modify that. |
| 315 |
|
| 316 |
Wed Apr 19 19:50:51 PDT 2000 <[email protected]> Blair Zajac |
| 317 |
|
| 318 |
* Release version 0.03. |
| 319 |
|
| 320 |
Wed Apr 19 14:47:58 PDT 2000 <[email protected]> Blair Zajac |
| 321 |
|
| 322 |
* Relax the requirement that the path to the program has to be |
| 323 |
absolute. If it is not absolute, then look for the absolute |
| 324 |
location of the program. |
| 325 |
|
| 326 |
* Add a new method named pid that returns the process ID of |
| 327 |
the new process. |
| 328 |
|
| 329 |
Sun Jun 28 12:43:39 PDT 1998 <[email protected]> Blair Zajac |
| 330 |
|
| 331 |
* Release version 0.02. |
| 332 |
|
| 333 |
Tue Jun 23 15:13:13 PDT 1998 <[email protected]> Blair Zajac |
| 334 |
|
| 335 |
* Restructure the die method. Keep the OS independent code |
| 336 |
for killing a process in Proc::Background and the OS |
| 337 |
dependent killing code in Proc::Background::*. |
| 338 |
* Update the POD for Proc::Background to be more explicit |
| 339 |
about what start_time and end_time return. |
| 340 |
* Fix bugs in Proc::Background::Win32. |
| 341 |
* Update Makefile.PL to check for Win32::Process installed on |
| 342 |
Win32 systems. |
| 343 |
|
| 344 |
Thu Jun 18 14:52:01 PDT 1998 <[email protected]> Blair Zajac |
| 345 |
|
| 346 |
* Update the README to indicate that libwin32 is only needed |
| 347 |
on Win32 systems. |
| 348 |
* Remove calls to croak or die. Call cluck instead. |
| 349 |
* Fix the implementation documentation. |
| 350 |
* Remove Proc::Background::Win32::alive since |
| 351 |
Proc::Background::alive works. |
| 352 |
|
| 353 |
Thu Apr 24 12:00:00 PDT 1998 <[email protected]> Blair Zajac |
| 354 |
|
| 355 |
* Version 0.01 |