Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 1998 21:43:30 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, cracauer@cons.org
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: make/SIGINT (Re: cvs commit: src/bin/sh jobs.c)
Message-ID:  <199804191143.VAA00099@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>In <199803131513.CAA27634@godzilla.zeta.org.au>, Bruce Evans wrote: 
>> SIGQUIT handling is still buggy.  For the simple Makefile:
>> ---
>> foo:
>> 	sleep 1000
>> ---
>> killing make with SIGQUIT gives the following behaviours:
>> 
>> 1. make:      exits with status 3 (SIGQUIT) (per the above change).
>> 2. make -j4:  hangs (broken).
>> 3: gmake:     exits with status 1.
>> 3: gmake -j4: exits with status 1.
>> 
>> POSIX.2 only requires a nonzero exit status for SIGQUIT.  We've just
>> fixed the handling of SIGINT, SIGTERM and SIGHUP.
>
>The appended diff fixes the hangs for `make -j4`->SIGQUIT by exiting
>with SIGINT exit status.
>
>I don't consider it that ugly to report exit on SIGINT to the calling
>process when the actual signal was SIGQUIT. Alternativly, we could
>limit coredumpsize = 0 and then exit with SIGQUIT.

I think I prefer to limit the coredump size.

I thought that this bunch of changes (at least to shell and make) was
ready to commit until a few minutes ago when I tried to kill a `make
depend' in src/lib.  It didn't work - some sub-make[s] kept running.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804191143.VAA00099>