Niklas Keller
b2126ce56d
Rename InputStream / OutputStream
...
This might seem weird, but the output streams of a child process are input streams, because you read from them. There will be confusion no matter which names we choose, but I think it's less confusing if the class names match STDIN / STDOUT than matching the interface names.
2018-07-20 20:46:53 +02:00
Niklas Keller
a338f10d27
Convert examples
2018-07-18 23:03:51 +02:00
Niklas Keller
896120ec5d
Drop promises entirely
2018-07-18 22:46:20 +02:00
Niklas Keller
991ee9079b
Produce failing test for ext-task
2018-07-12 08:46:13 +02:00
Niklas Keller
717dabc883
Fix tests
2018-07-12 08:28:31 +02:00
Niklas Keller
b0e690d3ee
Consume process output before closing
2018-07-12 08:19:24 +02:00
Niklas Keller
083d5a8ed5
Don't throw if process already terminated
...
This seems to be a race condition where the close pipe handler hasn't been called, but thee process already died.
2018-07-11 23:23:25 +02:00
Niklas Keller
ab08b080fb
Fix ProcessInputStream::read()
2018-07-11 23:18:50 +02:00
Niklas Keller
d8d272443b
Base implementation on ext-task
2018-07-11 20:50:54 +02:00
Niklas Keller
c2c529d72d
Remove note about non-existent CONTRIBUTORS.md
2018-04-09 21:06:35 +02:00
Niklas Keller
b795d20a7f
Copy wrapper exe outside the archive on Windows in case of PHARs
2018-04-08 20:55:42 +02:00
Niklas Keller
e0c753c53b
Fix double deferred resolution
2018-03-23 21:18:04 +01:00
Niklas Keller
239605b2e8
Remove outdated default property value
2018-03-08 16:09:10 +01:00
Niklas Keller
f8fd55993d
Defer handshake timeout in case the event loop is completely blocked
...
Fixes #21 .
2018-03-08 16:02:04 +01:00
Niklas Keller
95e1641ffa
Update README
2018-03-08 13:56:16 +01:00
Aaron Piotrowski
986ff9f8a6
Fix code style
2017-12-13 20:33:28 -06:00
Aaron Piotrowski
a13a2926a2
Avoid calling free() twice
2017-12-13 20:22:00 -06:00
Niklas Keller
d716404abc
Add another test with long output
2017-12-10 22:17:04 +01:00
Niklas Keller
1a4cd84e82
Add test with process printing something then exiting
2017-12-10 22:00:14 +01:00
Aaron Piotrowski
d4809b56c0
Update readme
2017-12-07 22:41:15 -06:00
Aaron Piotrowski
a4b1fa64fa
Update tests
...
Improved some tests and (hopefully) fixed a timing issue on windows in kill test.
2017-12-06 20:41:07 -06:00
Aaron Piotrowski
aeb22b9bda
Fix timing issues on streams
...
Killed or failed processes could lead to incorrect stream behaviors.
2017-12-06 19:21:06 -06:00
Aaron Piotrowski
8f837b3f94
Check status before failing join deferred
2017-12-06 17:37:08 -06:00
Aaron Piotrowski
04a4c8cea2
Test spawning many processes
2017-12-06 13:00:14 -06:00
Niklas Keller
55bf848767
Clean up tests
2017-12-05 22:53:41 +01:00
Niklas Keller
94479ce058
Fix testProcessEnvIsValid on Windows
2017-12-05 22:41:30 +01:00
Aaron Piotrowski
f7f0931a7d
Resolve initial read with downstream promise
2017-12-05 09:39:29 -06:00
Aaron Piotrowski
36c4d2da74
Update tests
2017-12-05 08:28:12 -06:00
Aaron Piotrowski
0755a16660
Check if handle is still valid resource
2017-12-05 08:20:31 -06:00
Aaron Piotrowski
3096777cb1
Use 7.2 on appveyor
2017-12-05 08:20:17 -06:00
Niklas Keller
2504312d90
Make deferred resolution more defensive
2017-12-05 12:38:59 +01:00
Niklas Keller
2591a9cd77
Fix testProcessEnvIsValid and skip signal test
2017-12-05 10:52:03 +01:00
Niklas Keller
63ef6dd1c6
Null child PID watcher to prevent double resolve
2017-12-05 10:24:19 +01:00
Niklas Keller
e208c9f0be
Fix PID deferred on early terminate
2017-12-05 10:15:20 +01:00
Niklas Keller
9b7f14a7e3
Fail joinDeferred correctly on kill during startup
2017-12-05 09:49:00 +01:00
Niklas Keller
690d696dc9
Fix kill during startup on Windows
2017-12-05 09:44:06 +01:00
Niklas Keller
ff7d7612bb
Fix typo
2017-12-05 09:19:44 +01:00
Niklas Keller
67f0e56543
Fix examples/ping-many.php to run correctly on Windows
2017-12-05 09:19:00 +01:00
Niklas Keller
9d271e1be3
Make examples/watch-live.php work on Windows
2017-12-05 09:15:04 +01:00
Niklas Keller
a7e750630c
Fix double deferred resolution if process spawn fails
2017-12-05 08:33:14 +01:00
peter279k
2a429681bd
Improve test coverage
2017-12-04 23:03:51 -06:00
Aaron Piotrowski
7c1b46d391
Fix test namespace
2017-12-02 21:16:52 -06:00
Aaron Piotrowski
8dbb2d133c
Define target platform in composer.json and fix .travis.yml and appveyor.yml
2017-12-02 21:16:03 -06:00
Aaron Piotrowski
f1bf550910
functions.php → constants.php
2017-11-24 19:11:21 -06:00
Aaron Piotrowski
c818f508d3
Add coverage annotations
...
Windows only classes cause havoc with coverage numbers… open to suggestions on how to fix but at least now it won't look like we didn't even try testing. :-P
2017-11-24 19:08:30 -06:00
Aaron Piotrowski
5d283ee7aa
Update badges
2017-11-24 19:03:29 -06:00
Aaron Piotrowski
bc0223c01a
Add ping count to example
2017-11-24 18:50:25 -06:00
Aaron Piotrowski
6b991c898b
Add Makefile and update git files
2017-11-24 18:47:59 -06:00
Niklas Keller
c47b61d7e7
Disable coverage submission on AppVeyor for now
2017-11-24 18:43:58 -06:00
Niklas Keller
32e901275a
Fix coveralls submission on AppVeyor
2017-11-24 18:43:58 -06:00