Date: Fri, 18 Oct 2013 16:07:30 -0400 From: Julio Merino <julio@meroh.net> To: Konstantin Belousov <kostikbel@gmail.com> Cc: ppc@freebsd.org Subject: Re: powerpc/183040: Nested signal handling is broken Message-ID: <CADyfeQWCaS7SfOh%2B=1762pEUJhTarQHe2MMpFov_TCWdWQ43_A@mail.gmail.com> In-Reply-To: <20131017073158.GB3865@kib.kiev.ua> References: <201310162349.r9GNnDud012497@mastodon.meroh.net> <20131017073158.GB3865@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 17, 2013 at 3:31 AM, Konstantin Belousov <kostikbel@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADyfeQWCaS7SfOh%2B=1762pEUJhTarQHe2MMpFov_TCWdWQ43_A>