Skip to content

Commit 78f58fe

Browse files
committed
---
yaml --- r: 216328 b: refs/heads/stable c: 7dd6215 h: refs/heads/master v: v3
1 parent 57c71ff commit 78f58fe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 5f518ad658fe3914f3817285c484409a582cba96
32+
refs/heads/stable: 7dd62155d85e9556c2b2b70c03acce9910896696
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/libstd/sys/unix/thread.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
342342
static mut __pthread_get_minstack: Option<F> = None;
343343

344344
INIT.call_once(|| {
345-
let lib = DynamicLibrary::open(None).unwrap();
345+
let lib = match DynamicLibrary::open(None) {
346+
Ok(l) => l,
347+
Err(..) => return,
348+
};
346349
unsafe {
347350
if let Ok(f) = lib.symbol("__pthread_get_minstack") {
348351
__pthread_get_minstack = Some(mem::transmute::<*const (), F>(f));

0 commit comments

Comments
 (0)