*Really*, really fix RTS crash due to bad coercion.
authorMerijn Verstraaten <merijn@inconsistent.nl>
Fri, 7 Nov 2014 13:32:18 +0000 (07:32 -0600)
committerAustin Seipp <austin@well-typed.com>
Fri, 7 Nov 2014 13:32:19 +0000 (07:32 -0600)
commit24e05f48f3a3a1130ecd5a46e3089b76ee5a2304
tree0a74d2046aa7cdfdd859b683815a30e7a9a345dd
parentb0e8e34ac1b4dcab2e4ec92d00440e047d260562
*Really*, really fix RTS crash due to bad coercion.

Summary:
My previous attempt to fix the new coercion bug introduced by my fix actually
just reverted back to the *old* bug. This time it should properly handle all
three size scenarios.

Signed-off-by: Merijn Verstraaten <merijn@inconsistent.nl>
Test Plan: validate

Reviewers: dfeuer, austin, hvr

Reviewed By: austin, hvr

Subscribers: thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D407

GHC Trac Issues: #8089
libraries/base/GHC/Event/Poll.hsc
libraries/base/tests/T8089.hs [new file with mode: 0644]
libraries/base/tests/all.T
rts/posix/Select.c