Aaron Piotrowski
4efa63d70d
Check for fast process finish
2017-02-09 12:25:27 -06:00
Aaron Piotrowski
96399025bb
Fix reading exit code on Windows
2017-02-09 11:17:05 -06:00
Aaron Piotrowski
37cf53aa27
Revert exit code piping change; remove exit code verification
2017-02-03 16:32:30 -06:00
Aaron Piotrowski
53b45ce0b9
Simpler exit code piping
2017-02-03 16:10:22 -06:00
Aaron Piotrowski
f2a8b44c40
Delay call to proc_close()
...
Calling proc_close() closes STDOUT and STDERR even if there is data available to read.
2017-01-16 12:37:00 -06:00
Aaron Piotrowski
ef6f58a4ce
Add isRunning() test
2017-01-15 23:07:51 -06:00
Aaron Piotrowski
aedbcbe339
Create Message objects on construct
...
Immediately buffers STDOUT and STDERR.
2017-01-15 09:46:41 -06:00
Aaron Piotrowski
7ccef896ee
Use Message for stdout and stderr
2017-01-15 09:30:34 -06:00
Aaron Piotrowski
79974426ae
Changes suggested by @kelunik plus some cleanup
2017-01-15 09:25:33 -06:00
Aaron Piotrowski
d899d24f18
Update StreamedProcess
2017-01-11 14:35:07 -06:00
Aaron Piotrowski
e062c3d207
Rename start() → execute() returning a promise; remove join()
2017-01-11 14:27:40 -06:00
Aaron Piotrowski
5181b53709
Do not chunk writes
2017-01-11 13:59:55 -06:00
Aaron Piotrowski
36c44aa353
Simplify writes
2017-01-11 13:57:04 -06:00
Aaron Piotrowski
3f3434ba18
Refactor for Amp v2
...
Merged Process and StreamedProcess from amphp/parallel that will now depend on this package.
2017-01-11 12:25:52 -06:00
Bob Weinand
f22cca2af3
Merge pull request #6 from amphp/array-api
...
Allow array in process constructor
2016-09-24 12:49:26 +02:00
Niklas Keller
053a7bea47
Allow array in process constructor
2016-09-24 09:00:47 +02:00
Bob Weinand
255325ca82
Properly throw an InvalidArgumentException in Process::write()
2015-12-24 13:44:49 +01:00
Bob Weinand
365fe2e096
Fix process exit watching
...
The issue is that proc_get_status() isn't very useful as a shell is in between.
Removed the shell for windows and added a third pipe for exit status watching on Unix. This also guarantees that the process will always have been properly closed when we resolve our Promise.
2015-10-25 18:18:56 +01:00
Bob Weinand
d2da56638f
Fixup after PR #5 , add some more tests
...
Also removing status() again
2015-09-16 19:56:15 +02:00
Edoardo Biraghi
618e4c9465
Removed unused functions
2015-09-11 19:23:57 +02:00
Edoardo Biraghi
a24fc9d9c3
Removed 'phpenv rehash' from .travis.yml
2015-09-11 19:21:31 +02:00
Edoardo Biraghi
25008b4212
Removed @coverage comments
2015-09-11 19:19:14 +02:00
Edoardo Biraghi
7b7efae820
Add more tests for exec(), kill(), pid() and status()
2015-09-11 19:05:46 +02:00
Edoardo Biraghi
f709600db5
Exclude tests against Libevent and Uv if the extensions are not loaded.
2015-09-11 17:21:42 +02:00
Edoardo Biraghi
096c908973
Testing against UvReactor
2015-09-11 17:16:40 +02:00
Edoardo Biraghi
fdf63c3866
Testing with Travis CI
2015-09-11 17:11:45 +02:00
Edoardo Biraghi
c449c52e75
Start testing with PHPUnit on multiple reactors
2015-09-11 16:39:38 +02:00
Edoardo Biraghi
5124e1432a
Changed pid() and added status();
2015-09-11 15:38:51 +02:00
Bob Weinand
6addcdddee
Add getter for pid
2015-09-11 00:59:23 +02:00
Bob Weinand
e7a1d052fb
Update to Amp 1.0
2015-09-10 23:53:51 +02:00
Bob Weinand
76dc3701ef
Merge pull request #2 from joshdifabio/patch-1
...
Fix 'cmd' typo in comment
2015-06-01 15:10:19 +02:00
Josh Di Fabio
1371d18ab0
Fix 'cmd' typo in comment
2015-06-01 14:08:50 +01:00
Daniel Lowrey
d465f69626
update composer package name
2015-04-22 12:22:05 -04:00
Bob Weinand
c4487b605d
Add a README and a few examples
2015-04-22 16:44:54 +02:00
Bob Weinand
883640145a
Initial Commit
2015-04-22 16:33:54 +02:00