1
0
mirror of https://github.com/danog/process.git synced 2024-12-12 09:09:44 +01:00
Commit Graph

27 Commits

Author SHA1 Message Date
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
9460633c7d
Use shared CS config; update styles 2018-10-14 23:16:09 -05: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
f8fd55993d Defer handshake timeout in case the event loop is completely blocked
Fixes #21.
2018-03-08 16:02:04 +01:00
Aaron Piotrowski
a13a2926a2
Avoid calling free() twice 2017-12-13 20:22:00 -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
0755a16660
Check if handle is still valid resource 2017-12-05 08:20:31 -06:00
Niklas Keller
2504312d90 Make deferred resolution more defensive 2017-12-05 12:38:59 +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
a7e750630c Fix double deferred resolution if process spawn fails 2017-12-05 08:33:14 +01: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
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
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