mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
Kill the child process when SIGINT received in headless mode
This commit is contained in:
@@ -228,12 +228,13 @@ fn copy<T: Tty + ?Sized, R: Recorder>(
|
||||
recorder.resize(winsize.into());
|
||||
}
|
||||
|
||||
let mut kill_the_child = false;
|
||||
|
||||
if sigint_read {
|
||||
sigint_fd.flush();
|
||||
kill_the_child = true;
|
||||
}
|
||||
|
||||
let mut kill_the_child = false;
|
||||
|
||||
if sigterm_read {
|
||||
sigterm_fd.flush();
|
||||
kill_the_child = true;
|
||||
|
||||
Reference in New Issue
Block a user