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

Commit

Permalink
Revert "Revert "ChildProcessStream: store exitcode/exitsignal""
Browse files Browse the repository at this point in the history
This reverts commit 6736442.
  • Loading branch information
blueyed committed Oct 11, 2019
1 parent 6736442 commit 906af8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nvim/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ function Session:_run(request_cb, notification_cb, timeout)
self._prepare:stop()
end)
end
self._msgpack_rpc_stream:read_start(request_cb, notification_cb, uv.stop)
self._msgpack_rpc_stream:read_start(request_cb, notification_cb, function()
uv.run() -- run the loop to get exitcode from child process.
self.child_exit = self._msgpack_rpc_stream._stream.exitcode
self.child_signal = self._msgpack_rpc_stream._stream.exitsignal
uv.stop()
end)
uv.run()
self._prepare:stop()
self._timer:stop()
Expand Down

0 comments on commit 906af8d

Please sign in to comment.