From owner-freebsd-questions@FreeBSD.ORG Mon May 18 21:55:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E292F106568A for ; Mon, 18 May 2009 21:55:28 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost0.waddell.com (mailhost0.waddell.com [12.154.38.61]) by mx1.freebsd.org (Postfix) with ESMTP id 8633C8FC17 for ; Mon, 18 May 2009 21:55:28 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost2.waddell.com (mailhost2.waddell.com [10.1.10.30]) by mailhost0.waddell.com (8.13.8/8.13.8) with ESMTP id n4ILsb33021374; Mon, 18 May 2009 16:54:52 -0500 (CDT) (envelope-from Ggatten@waddell.com) Received: from mailhost2.waddell.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4ADE08A8B5; Mon, 18 May 2009 16:54:25 -0500 (CDT) Received: from wadpexf0.waddell.com (wadpexf0.waddell.com [192.168.204.24]) by mailhost2.waddell.com (Postfix) with ESMTP id 335938A8A7; Mon, 18 May 2009 16:54:25 -0500 (CDT) Received: from WADPEXV0.waddell.com ([192.168.204.25]) by wadpexf0.waddell.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 18 May 2009 16:54:24 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 18 May 2009 16:54:24 -0500 Message-ID: <70C0964126D66F458E688618E1CD008A0793ED2E@WADPEXV0.waddell.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Why would a kill -2 not work? Thread-Index: AcnYAuKnL+4QkEszQ9aj6Br2PK27BQAADaBQ References: <30551570.941242683137179.JavaMail.HALO$@halo> From: "Gary Gatten" To: "Chuck Swiger" , "Peter Steele" X-OriginalArrivalTime: 18 May 2009 21:54:24.0855 (UTC) FILETIME=[355CDE70:01C9D803] Cc: #freebsd-questions Subject: RE: Why would a kill -2 not work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 21:55:29 -0000 What he said. It's better to just stick with -9; it almost always works! ;-) -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Chuck Swiger Sent: Monday, May 18, 2009 4:49 PM To: Peter Steele Cc: #freebsd-questions Subject: Re: Why would a kill -2 not work? Hi-- On May 18, 2009, at 2:45 PM, Peter Steele wrote: > This is basically what we doing. When the handler is triggered we=20=20 > set a global variable to indicate the system is shutting down. I=20=20 > also signal a condition to wake up a sleeping thread. The lack of=20=20 > log messages indicate that this handler never gets called and the=20=20 > system carries on as if the kill -2 never happened. You're not trying to send a signal within the signal handler itself,=20=20 are you? That won't work-- signal delivery is blocked when you're=20=20 already running in a signal handler. Also, note that trying to mix=20=20 signals with a multithreaded process is complicated.... --=20 -Chuck _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
"This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system."