]> Zhao Yanbai Git Server - minix.git/commit
PM: fix alarm signal delivery 71/3371/1
authorDavid van Moolenbroek <david@minix3.org>
Sat, 22 Oct 2016 11:46:28 +0000 (11:46 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 24 Oct 2016 12:11:52 +0000 (12:11 +0000)
commit286d266fd0c2c6853131c62e77f8edab8f6dc2bb
treefb40644b30a3cf85971c96d8a2792ee4ff325211
parentdd41186aac5f9c05e657f127b7e5d33f375d1686
PM: fix alarm signal delivery

As of change git-87c599d, when processing CLOCK notifications, PM no
longer set the current process pointer 'mp'.  That pointer is however
used when delivering signals through check_sig(), to see whether the
current process may deliver a signal to the target process.  As a
result, delivering SIGALARM signals used a previous pointer in these
checks, causing alarm signals not to be delivered in some cases.
This patch ensures that alarm signals are again delivered with PM as
current process.

Change-Id: I94ccbe8b71289df0e1d6d67928e55297bbc28360
minix/servers/pm/alarm.c