rust-lang/rust — pull request #17720 by ben0x539 (2014-10-02 20:18:41+00:00)
Title: native: fix passing errno to parent after fork

The bitshifts were wrong in that they invoked undefined behavior and
only passed the lower byte of the presumed-to-be-32bit errno value.
Apparently all actually possible values for errno happen to be easily
under 256, so this didn't cause any actual problems.

This commit fixes the bitshifts, but doesn't generalize to errno types
that aren't 32bit.