help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMAKE 3.81 vs GMAKE 4.2


From: nikhil jain
Subject: Re: GMAKE 3.81 vs GMAKE 4.2
Date: Mon, 21 Oct 2019 21:26:38 +0530

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 <address@hidden> 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.
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]