From owner-cvs-all@FreeBSD.ORG Tue Apr 12 15:02:58 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3860A16A4CE; Tue, 12 Apr 2005 15:02:58 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D0C143D48; Tue, 12 Apr 2005 15:02:58 +0000 (GMT) (envelope-from thomas@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3CF2vMa039936; Tue, 12 Apr 2005 15:02:57 GMT (envelope-from thomas@repoman.freebsd.org) Received: (from thomas@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3CF2viI039935; Tue, 12 Apr 2005 15:02:57 GMT (envelope-from thomas) Message-Id: <200504121502.j3CF2viI039935@repoman.freebsd.org> From: Thomas Quinot Date: Tue, 12 Apr 2005 15:02:57 +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.sbin/yppush yppush_main.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 15:02:58 -0000 thomas 2005-04-12 15:02:57 UTC FreeBSD src repository Modified files: usr.sbin/yppush yppush_main.c Log: (handler): When exitting upon an abnormal signal, yppush_exit() should not attempt to clear its pending jobs list, as this could trigger another signal, and cause an infinite recursion. What yppush_exit() tests in order to determine whether to flush pending jobs is the yppush_joblist chained list, so this is what needs to be cleared in that case (not the yppush_jobs counter). Reviewed by: audit@ (no objection) MFC after: 2 weeks Revision Changes Path 1.20 +1 -1 src/usr.sbin/yppush/yppush_main.c