Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 906af8d

Browse files
committed
Revert "Revert "ChildProcessStream: store exitcode/exitsignal""
This reverts commit 6736442.
1 parent 6736442 commit 906af8d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: nvim/session.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ function Session:_run(request_cb, notification_cb, timeout)
181181
self._prepare:stop()
182182
end)
183183
end
184-
self._msgpack_rpc_stream:read_start(request_cb, notification_cb, uv.stop)
184+
self._msgpack_rpc_stream:read_start(request_cb, notification_cb, function()
185+
uv.run() -- run the loop to get exitcode from child process.
186+
self.child_exit = self._msgpack_rpc_stream._stream.exitcode
187+
self.child_signal = self._msgpack_rpc_stream._stream.exitsignal
188+
uv.stop()
189+
end)
185190
uv.run()
186191
self._prepare:stop()
187192
self._timer:stop()

0 commit comments

Comments
 (0)