Re: [PATCH] trace-cmd: Plug startup race between flush_threads andrecorders

From: Steven Rostedt
Date: Fri Oct 15 2010 - 12:34:10 EST


On Fri, 2010-10-15 at 13:50 +0200, Jan Kiszka wrote:
> As the SIGUSR1 handler is so far registered after forking the recorder
> child, there is a small race window where a flush sent by the main
> process can actually kill the child. Plug this by registering the signal
> handlers before the fork. This also allows to unify SIGINT registration.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>

Applied, Thanks!

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/