From owner-cvs-src@FreeBSD.ORG Fri Nov 12 07:57:17 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE82516A4DB; Fri, 12 Nov 2004 07:57:17 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85D9C43D2F; Fri, 12 Nov 2004 07:57:17 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iAC7vHH7080513; Fri, 12 Nov 2004 07:57:17 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iAC7vHKI080512; Fri, 12 Nov 2004 07:57:17 GMT (envelope-from harti) Message-Id: <200411120757.iAC7vHKI080512@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 12 Nov 2004 07:57:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/make compat.c job.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 07:57:18 -0000 harti 2004-11-12 07:57:17 UTC FreeBSD src repository Modified files: usr.bin/make compat.c job.c Log: Fix a (very) long standing bug in make (this has been there probably from the beginning). Make used to handle all its interrupt-time stuff directly from the signal handler, including calls to printf, accessing global data and so on. This is of course wrong and could provoke a core dump when interrupting make. Just set a flag in the signal handler and do everything else from the main thread. PR: bin/29103 Revision Changes Path 1.39 +42 -15 src/usr.bin/make/compat.c 1.56 +60 -14 src/usr.bin/make/job.c