sagiegurari / cargo-make

Rust task runner and build tool.
https://sagiegurari.github.io/cargo-make/
Apache License 2.0
2.59k stars 126 forks source link

ctrl+c exits long-running command (REPL) unexpectedly #954

Open xxchan opened 1 year ago

xxchan commented 1 year ago

e.g., psql/python

[tasks.python]
script = '''
#!/usr/bin/env bash
python
'''

This is kind of the duality of #374 (long-running server is not killed πŸ˜„

sagiegurari commented 1 year ago

@xxchan did you try the following: https://github.com/sagiegurari/cargo-make#unstable-features

[config]
unstable_features = ["CTRL_C_HANDLING"]
xxchan commented 1 year ago

Yes. The first ctrlc will not kill it, but the second one will, which is still unexpected.

Sagie Gur-Ari @.***>于2023εΉ΄10月1ζ—₯ 周ζ—₯18:30ε†™ι“οΌš

@xxchan https://github.com/xxchan did you try the following: https://github.com/sagiegurari/cargo-make#unstable-features

β€” Reply to this email directly, view it on GitHub https://github.com/sagiegurari/cargo-make/issues/954#issuecomment-1742035899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBQZNJISMW24FET66VHPFDX5FA4ZANCNFSM6AAAAAA5KUQU4U . You are receiving this because you were mentioned.Message ID: @.***>