1
0
mirror of https://github.com/danog/process.git synced 2024-11-30 04:39:04 +01:00
Commit Graph

153 Commits

Author SHA1 Message Date
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
Niklas Keller
3eee7e304b
Enable coverage on AppVeyor 2017-11-24 18:43:58 -06:00
Niklas Keller
7c96e123de
Add AppVeyor config 2017-11-24 18:43:58 -06:00
Niklas Keller
9a52085bc8
Use fully qualified function calls 2017-11-24 18:43:58 -06:00
Niklas Keller
8cbd431dab
Update Travis config and fix code style 2017-11-24 18:43:57 -06:00
Niklas Keller
96491ebfe1
Fix hanging if process is destroyed during startup 2017-11-24 18:43:57 -06:00
Niklas Keller
a9f60b8d89
Don't accept handshake if process already ended
This might happen if the process is destroyed while the wrapper tries to establish the connections.
2017-11-24 18:43:57 -06:00
Niklas Keller
071ec5bed7
Cancel child PID watcher on destroy and close sockets before proc_close 2017-11-24 18:43:57 -06:00
Niklas Keller
f7d6288d21
Fix loop hanging if process is killed during handshake on Windows 2017-11-24 18:43:57 -06:00
Niklas Keller
df827c767e
Close sockets correctly if process gets destroyed by GC 2017-11-24 18:43:57 -06:00
Niklas Keller
15385047fc
Explicitly shut down sockets after exit code has been received 2017-11-24 18:43:56 -06:00
Niklas Keller
e8e8597457
Resolve stdio streams directly after third socket connected 2017-11-24 18:43:56 -06:00
Niklas Keller
8f9d1d234a
Fix preconditions for getStdin / getStdout / getStderr 2017-11-24 18:43:56 -06:00
Niklas Keller
7cf91efd08
Refactor for full Windows compatibility 2017-11-24 18:43:56 -06:00
Niklas Keller
88f8865a6a
More refactoring for Windows compatibility with improved BC 2017-11-24 18:43:56 -06:00
Chris Wright
6d2b28f4f5
Refactor for full Windows compatibility 2017-11-24 18:43:56 -06:00
Aaron Piotrowski
c07c27f882
Use close() on object instead of fclose() on resource 2017-11-08 21:34:11 -06:00
Aaron Piotrowski
5aa6040fcf
More specific std* return types 2017-07-17 22:37:19 -05:00
Aaron Piotrowski
cc85c607b9 Upgrade to PHPUnit 6 2017-06-15 22:53:33 -05:00
Aaron Piotrowski
6ef9d34179 Close pipes before proc; resolve with promise on windows 2017-06-15 15:38:07 -05:00
Niklas Keller
a0cf19e999 Prevent busy loop, sleep 10ms between status queries 2017-06-15 21:29:45 +02:00
Niklas Keller
5468a5280f Fix code style 2017-06-15 21:15:27 +02:00
Niklas Keller
90a18ada1a Fix exit code on Windows 2017-06-15 21:10:41 +02:00
Aaron Piotrowski
fb0a6456b0 Close pipe resources on destruct 2017-06-15 13:13:07 -05:00
Aaron Piotrowski
73582f9ee7 Return streams from Process and drop StreamedProcess 2017-06-15 12:52:07 -05:00
Niklas Keller
71ab90c2d8 Add PHP_CS_FIXER_IGNORE_ENV=1 2017-06-15 19:33:08 +02:00