diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-11-19 16:23:19 +1100 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2014-11-22 18:15:09 +1100 |
commit | 6a1746b4e387dde10c9409099c1000443f40b4cd (patch) | |
tree | fdcb4de73de5fde198d7d4f52fcbfad5a8dee36f /player/client.c | |
parent | f2b94a3b499667cefe848ecc57487c8fe62584f4 (diff) | |
download | mpv-6a1746b4e387dde10c9409099c1000443f40b4cd.tar.bz2 mpv-6a1746b4e387dde10c9409099c1000443f40b4cd.tar.xz |
lua: subprocess: fix Ctrl+C handling on Windows
The CREATE_NO_WINDOW flag is used to prevent the subprocess from
creating an empty console window when mpv is not running in a console.
When mpv is running in a console, it causes the subprocess to detach
itself, and prevents it from seeing Ctrl+C events, so it hangs around in
the background after mpv is killed.
Fix this by only specifying CREATE_NO_WINDOW when mpv is not attached to
a console. When it is attached to a console, subprocesses will
automatically inherit the console and correctly receive Ctrl+C events.
Diffstat (limited to 'player/client.c')
0 files changed, 0 insertions, 0 deletions