From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 18 20:08:00 2013 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7C5D1B84 for ; Fri, 18 Oct 2013 20:08:00 +0000 (UTC) (envelope-from julio@meroh.net) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 098F22B10 for ; Fri, 18 Oct 2013 20:07:59 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id ea20so1132341lab.41 for ; Fri, 18 Oct 2013 13:07:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=51cFqyblMSs/bVvh79DNCCoMx7CKTR1f6jwqLV8wbtA=; b=OCQBHIAVVDNyn0nCoxmrxIBEY3etW433sSyWkGbYs+iu+WNo38v/fNISXXp0eiB7Wv QhwaY7VgXOy7I1AESdmaWhsD7ZJU1wDtCDZBBugp0g3UUaJ4tHWDaYcxDJHDA31jNnay E5KCTHiytZrbsynm/BYmpaa5uRnBgHT3wt57AtMjMUIGzGcVyn6S7ozbbGznkbK/rFj3 WMDmzfQfroqvqxENQDGnTN70dh/BK9+9CjeBa9bdkXzmEuAQN38a/Ex10AK7K6xzGAXt 4o2d0pZKJUfcNyJJYLdHcNkQahMtF5aaaNJijMRy/ChMMPYKEBSpVSCNZF0s4KhOstJA NaRg== X-Gm-Message-State: ALoCoQk67Wt8nUCfK6hs9v6LIAxPEfElVkI2V7645RbaATf4epy0Sbt+6UjkdO/dVjnp15NB+Jb+ X-Received: by 10.112.156.166 with SMTP id wf6mr3788140lbb.13.1382126870458; Fri, 18 Oct 2013 13:07:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.132.135 with HTTP; Fri, 18 Oct 2013 13:07:30 -0700 (PDT) X-Originating-IP: [108.176.158.82] In-Reply-To: <20131017073158.GB3865@kib.kiev.ua> References: <201310162349.r9GNnDud012497@mastodon.meroh.net> <20131017073158.GB3865@kib.kiev.ua> From: Julio Merino Date: Fri, 18 Oct 2013 16:07:30 -0400 Message-ID: Subject: Re: powerpc/183040: Nested signal handling is broken To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 20:08:00 -0000 On Thu, Oct 17, 2013 at 3:31 AM, Konstantin Belousov wrote: > What you could do, is to localize the point where the breakage occur. > Add a function like this: > > static void > print_sig_disposition(int signo) > { > struct sigaction sa; > sigaction(signo, NULL, &sa); > printf("sig %d handler %p\n", signo, sa.sa_handler); > } > > and sprinkle a calls to it often enough, to see where the reset of the > disposition happens. Insert the call to the function into the signal > handler as well. As far as I can tell, the sa_handler remains set all the time. It's correct before the call to kill(). -- Julio Merino / @jmmv