mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
7f22a27a10
Handling of process exit is still broken. It detects the moment when the child process exits, then quickly stops polling for process output. It should continue polling for output until the agent has scraped all of the process' output. This problem is easy to notice by running a command like "dir && exit", but even typing "exit<ENTER>" can manifest the problem -- the "t" might not appear. winpty's Cygwin adapter handles shutdown by waiting for the agent to close the CONOUT pipe, which it does after it has scraped the child's last output. AFAIK, neovim doesn't do anything interesting when winpty closes the CONOUT pipe.
11 lines
324 B
CMake
11 lines
324 B
CMake
include(LibFindMacros)
|
|
|
|
find_path(WINPTY_INCLUDE_DIR winpty.h)
|
|
set(WINPTY_INCLUDE_DIRS ${WINPTY_INCLUDE_DIR})
|
|
|
|
find_library(WINPTY_LIBRARY winpty)
|
|
find_program(WINPTY_AGENT_EXE winpty-agent.exe)
|
|
set(WINPTY_LIBRARIES ${WINPTY_LIBRARY})
|
|
|
|
find_package_handle_standard_args(Winpty DEFAULT_MSG WINPTY_LIBRARY WINPTY_INCLUDE_DIR)
|