~vapier/libnih/libnih

  • Committer: Mike Frysinger
  • Author(s): Mike Frysinger
  • Date: 2015-05-21 08:12:11 UTC
  • Revision ID: vapier@gentoo.org-20150521081211-428bvcdet7iamkk7
fix race in signal processing leading to lost signals

The current loop will walk all signals one by one and run the handler
for it if any signals were pending.  Then it clears the array.  But if
a signal comes in for an earlier checked signal, it will get clobbered
when the final clear runs.

Change the logic so that we only clear entries for signals whose handler
we explicitly call.  If a different signal comes in, we'll process it
the next time around.

This was discovered & triaged by Jeffy Chen from Rockchip.
Filename Latest Rev Last Changed Committer Comment Size
..
m4 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create Diff
nih 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create Diff
nih-dbus 633 15 years ago Scott James Remnant * nih/dbus.c, nih/dbus.h, nih/libnih-dbus.supp, ni Diff
nih-dbus-tool 664 15 years ago Scott James Remnant * configure.ac: Create nih-dbus-tool Makefile * Ma Diff
po 4 18 years ago Scott James Remnant * po/LINGUAS: Created file to hold language list o Diff
.bzrignore 1002 14 years ago Scott James Remnant * nih/libnih.pc.in, nih-dbus/libnih-dbus.pc.in: So 1.1 KB Diff Download File
AUTHORS 174 17 years ago Scott James Remnant * AUTHORS: Mention the ChangeLog file. 177 bytes Diff Download File
ChangeLog 1054 12 years ago Scott James Remnant * nih-dbus-tool/tests/test_com.netsplit.Nih.Test_o 321 KB Diff Download File
configure.ac 1047 13 years ago Scott James Remnant * configure.ac: Bump version to 1.0.4 * NEWS: Begi 2 KB Diff Download File
COPYING 921 14 years ago Scott James Remnant * COPYING: Change licence to version 2 of the GNU 17.5 KB Diff Download File
HACKING 1009 14 years ago Scott James Remnant * configure.ac (AC_PRERQ): Update to 2.62 (AM_INIT 4.7 KB Diff Download File
Makefile.am 1001 14 years ago Scott James Remnant * Makefile.am: Always build libnih-dbus and nih-db 164 bytes Diff Download File
NEWS 1047 13 years ago Scott James Remnant * configure.ac: Bump version to 1.0.4 * NEWS: Begi 15.1 KB Diff Download File
README 999 14 years ago Scott James Remnant * README: Remove the usage instructions, since thi 1.8 KB Diff Download File
TODO 1025 14 years ago Scott James Remnant * TODO: Update. 6.4 KB Diff Download File