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

146 Commits

Author SHA1 Message Date
代码之美
aa7eed2a04
Fix further fclose errors with PHP 8 (#46) 2021-03-30 18:37:21 +02:00
Bilge
b24f0ca94d
Added guard to ensure socket is still open before closing (#49)
This is required to ensure no TypeError is thrown by attempting to close a socket that is already closed. PHP 8 promoted warnings to errors.
2021-03-30 18:36:25 +02:00
Niklas Keller
a982312517 Fix two tests failing on Windows 2020-03-08 23:50:38 +01:00
1a70f0dd53
Update AppVeyor config to PHP 7.4 (#42) 2020-03-08 21:33:54 +01:00
Niklas Keller
2dcddfb761 Use deterministic path for exe copy outside phar
Fixes #37.
2019-03-06 19:29:00 +01:00
Aaron Piotrowski
355b1e561b
Ignore PHP version on composer cs command
Everytime I update PHP I stop running the CS fixer because of their stupid platform requirements…
2019-02-26 10:33:03 -06:00
Aaron Piotrowski
e9f1681fab
Missed adding signal test script
Whoops…
2019-02-26 10:22:25 -06:00
Aaron Piotrowski
d51bd9a487
Send signals to child process instead of wrapper 2019-02-26 10:12:52 -06:00
Aaron Piotrowski
ab53d92776
Test on 7.3 & 7.4 2019-02-25 22:58:26 -06:00
Aaron Piotrowski
155960d7dd
Rename escape function
Renamed constants.php to functions.php since it now contains a function.
2019-02-25 22:50:25 -06:00
Chris Wright
6810aacc5d Update Windows binaries to v1.2.0 (#34) 2019-02-25 22:39:07 -06:00
Chris Wright
6dd4b5600a Use correct arg escape logic on windows (#35) 2019-02-25 22:38:36 -06:00
Aaron Piotrowski
2f79a32f04
Ignore termination signals in shell process
Fixes #36.
2019-02-25 19:38:05 -06:00
Aaron Piotrowski
974c6e2048
Use correct FD index in FD array 2019-01-28 11:55:02 -06:00
Aaron Piotrowski
a461b7d975
Close unnecessary file descriptors in child process 2019-01-24 18:04:35 -06:00
Max Furtuna
e7e28219da
Fix #29: Kill unresponsive processes 2019-01-15 15:42:43 -06:00
Aaron Piotrowski
90f3f31cbd
Remove getting wrapper STDERR contents
Windows was hanging on this call. I don't think the pipe needs to be emptied before closing on Windows, but we can revisit this in the future if needed.
2018-11-08 18:02:00 -06:00
Aaron Piotrowski
51874750e3
Resolve PID promise after marking process as running 2018-11-07 22:47:07 -06:00
Aaron Piotrowski
9d0d7ab360
Mark classes final 2018-10-20 11:34:05 -05:00
Aaron Piotrowski
8ea6f650bf
Update travis build 2018-10-17 12:27:54 -05:00
Aaron Piotrowski
efe168f47d
Fix code style 2018-10-17 12:27:43 -05:00
Aaron Piotrowski
5f5a901744
Add Process::__debugInfo()
Fixes #25.
2018-10-15 10:12:17 -05:00
Aaron Piotrowski
d2d8d79615
Update CS config 2018-10-15 09:55:26 -05:00
Aaron Piotrowski
91dc2ec100
Update examples 2018-10-15 09:55:15 -05:00
Aaron Piotrowski
b71e5c0544
Wait until process starts to make streams available
The process runners can be simplified in the future with this change without breaking BC.
2018-10-15 09:47:28 -05:00
Aaron Piotrowski
8ec002633b
Return promise from Process::start(); int from Process::getPid() 2018-10-14 23:27:39 -05:00
Aaron Piotrowski
9460633c7d
Use shared CS config; update styles 2018-10-14 23:16:09 -05: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