- Dec 13, 2016
-
-
bors authored
When checking the status from waitpid on a kill -STOP <child_pid> WIFSIGNALED returns true Currently in WIFSIGNALED rust is doing: (status & 0x7f) + 1 where status is i32 As defined in /usr/include/x86_64-linux-gnu/bits/waitstatus.h #define __WIFSIGNALED(status) \ (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) Here is an example of the issue: http://paste2.org/fXc8BxJ0 Run it, and it'll print the child pid then: kill -STOP <child_pid> Expect: Stopped by signal print statement Results: Killed by signal print statement Using the i32, it wont overflow leaving you with 128 returning true, using the waitstatus define you'll end up with -64 (since it shifts 1 right) which would return false. Though the C version shifts right once not really sure *why* but theres most likely a reason somewhere. For the fix, just cast to i8 (signed char pretty much) as the C version is doing. RUNNING ALL TESTS PASSED 7356 tests
-
Brandon Schaefer authored
-
- Dec 07, 2016
-
-
bors authored
Add clearenv()
-
- Dec 06, 2016
- Dec 05, 2016
-
-
Michael Neumann authored
-
Guillaume Gomez authored
-
bors authored
Recognize NetBSD/sparc64 as a generic 64-bit NetBSD
-
Jonathan A. Kollasch authored
-
Sebastian Hahn authored
-
- Dec 04, 2016
-
-
Michael Neumann authored
The union which contains a void* has to be aligned at a 8-byte boundary.
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
Keep them in the freebsdlike/mod.rs together with related constants.
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
Michael Neumann authored
-
- Dec 03, 2016
-
-
bors authored
Update both mips musl download locations
-
Alex Crichton authored
-
- Dec 02, 2016
-
-
bors authored
i686-unknown-openbsd libc correction Now I had been able to run testsuite on i686-unknown-openbsd, here a batch of corrections. - `suseconds_t` is `c_long` (`i64` or `i32` depending the arch) - struct siginfo_t padding adjustment (the pointer `si_addr` makes the pad to change depending pointer size) I tested the PR on i686-unknown-openbsd and x86_64-unknown-openbsd.
-
bors authored
Bump to 0.2.18
-
Alex Crichton authored
-
Sébastien Marie authored
-
Sébastien Marie authored
-
- Nov 29, 2016
-
-
Alex Crichton authored
Make openbsdlike to support 64 and 32 bits archs
-
- Nov 28, 2016
-
-
Sébastien Marie authored
-
- Nov 26, 2016
-
-
Alex Crichton authored
Fix appveyor badge.
-
Corey Farwell authored
-
- Nov 19, 2016
-
-
Alex Crichton authored
-
- Nov 18, 2016
-
-
Alex Crichton authored
Share the host's `target` directory for tests
-
Alex Crichton authored
Move docs back to nightly
-
- Nov 17, 2016
-
-
Alex Crichton authored
This helps caching between runs and can help speed up turnaround time for various operations. The old android container didn't work out for some reason due to permissions so the definition has now been vendored locally to just rebuild it each time.
-
Alex Crichton authored
-