]> granicus.if.org Git - sysstat/commit
sadc: Fix possible race condition in signal handler code
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 2 Nov 2014 17:02:06 +0000 (18:02 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 2 Nov 2014 17:02:06 +0000 (18:02 +0100)
commitc3de69658006af0e0e3b7746e8646b8b4cdd2860
treef994225ba5088687a3ac1d72a12f4ee8bbb6018a
parent2009e11f2312935a9565ee08e5a6e36efbb24511
sadc: Fix possible race condition in signal handler code

Commit 1b52f939 tried to stop sending SIGINT to init process.
But there may be very small time window between parent ID
validation and sending kill signal to parent. If sar dies
during this window (though the chance is very small) we end up
sending signal to init.

This patch fixes above issue.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadc.c