We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f518ad commit 7dd6215Copy full SHA for 7dd6215
src/libstd/sys/unix/thread.rs
@@ -342,7 +342,10 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
342
static mut __pthread_get_minstack: Option<F> = None;
343
344
INIT.call_once(|| {
345
- let lib = DynamicLibrary::open(None).unwrap();
+ let lib = match DynamicLibrary::open(None) {
346
+ Ok(l) => l,
347
+ Err(..) => return,
348
+ };
349
unsafe {
350
if let Ok(f) = lib.symbol("__pthread_get_minstack") {
351
__pthread_get_minstack = Some(mem::transmute::<*const (), F>(f));
0 commit comments