From 57b7751768987aa878e84672329c7c598742db81 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 10 Dec 2017 12:34:06 -0600 Subject: [PATCH] Leave stdin in socket array --- lib/Internal/Windows/SocketConnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Internal/Windows/SocketConnector.php b/lib/Internal/Windows/SocketConnector.php index fe09115..c44c4e0 100644 --- a/lib/Internal/Windows/SocketConnector.php +++ b/lib/Internal/Windows/SocketConnector.php @@ -211,7 +211,7 @@ final class SocketConnector { $deferreds = $handle->stdioDeferreds; $handle->stdioDeferreds = []; // clear, so there's no double resolution if process spawn fails $sockets = $handle->sockets; - $handle->sockets = []; + $handle->sockets = [$sockets[0]]; // Leave stdin in array. $deferreds[0]->resolve(new ResourceOutputStream($sockets[0])); $deferreds[1]->resolve(new ResourceInputStream($sockets[1]));