I handle SIGINT (ctrl+c) like this in the makefile - trap 'USER_INT=1; /bin/echo "terminating, please wait...."' INT;
This traps SIGINT. Thanks Nikhil On Mon, Oct 21, 2019 at 6:09 PM Paul Smith <psm...@gnu.org> wrote: > On Mon, 2019-10-21 at 13:00 +0530, nikhil jain wrote: > > I see that if I do a ctrl c then fatal_error_signal function is > > called. > > > > Now the problem is if I am trapping ctrl c in makefile then > > fatal_error_signal is not called... > > I don't know what you mean. > > It's not possible to "trap CTRL-C in a makefile". Makefile syntax > doesn't have any facility for setting a signal handler in the make > program itself. > > If you provide an example of what you're doing maybe we could > understand. > > _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make