On Mon, 2019-10-21 at 22:47 +0530, nikhil jain wrote: > see this how it works in makefile. It is part of the target - > > bash-4.1$ cat Makefile > a1: > trap 'USER_INT=1; /bin/echo "terminating, please wait...."' INT; \ > sleep 100 > > bash-4.1$ make > trap 'USER_INT=1; /bin/echo "terminating, please wait...."' INT; \ > sleep 100 > ^Cterminating, please wait.... > make: *** [a1] Error 130 > > see this ? When make was executing sleep 100 , I gave ctrl+c and got > my message " terminating, please wait". It did not go to > fatal_error_signal at all.
It DID go to fatal_error_signal(). Why do you think it didn't? Just because your trap was called doesn't mean that make didn't catch the signal. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make