]> git.proxmox.com Git - cargo.git/commit
Add empty ctrlc handler on Windows.
authorZach Lute <zach.lute@gmail.com>
Mon, 10 Sep 2018 23:50:11 +0000 (16:50 -0700)
committerZach Lute <zach.lute@gmail.com>
Mon, 10 Sep 2018 23:50:11 +0000 (16:50 -0700)
commit6a3f4b9a5a2cce6acd289cd722b076f3cb538fea
treeab199998f0f6778b04a99cfb901e1e23b376b8f5
parentb917e35248fe57d11765c5a835de33e335babb7e
Add empty ctrlc handler on Windows.

When exec_replacing the cargo process, we want the new process to get any signals. This already works fine on Unix.

On Windows, pressing ctrlc kills the cargo process and doesn't pass the signal on to the child process. By adding an empty handler, we allow the child process to handle the signal instead.
src/cargo/util/process_builder.rs