In 1.24.0, ctrl+c no longer interrupts the child process
Author: kentonvCreated Dec 10, 2023Updated Sep 27, 2024
Labelsbugneed repro
watchexec v1.24.0 on Linux
Prior to this version, when I pressed ctrl+c, both watchexec and the program running under it would be termintaed.
As of 1.24, only watchexec is terminated. The inner program continues to run, including writing text to the terminal even though the shell has already presented me with a prompt.
If I use the new feature --map-signal INT:INT, then the problem is the opposite: ctrl+c interrupts the inner program, but does not terminate watchexec, and indeed it's unclear how watchexec can be terminated in this case without killing it from a separate terminal.
I think the right default is for both watchexec and the inner program to be terminated on ctrl+c. This is normally what I want.
Source: watchexec/watchexec