File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/stable/src/libstd/sys/unix Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 5f518ad658fe3914f3817285c484409a582cba96
32
+ refs/heads/stable: 7dd62155d85e9556c2b2b70c03acce9910896696
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -342,7 +342,10 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
342
342
static mut __pthread_get_minstack: Option < F > = None ;
343
343
344
344
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
+ } ;
346
349
unsafe {
347
350
if let Ok ( f) = lib. symbol ( "__pthread_get_minstack" ) {
348
351
__pthread_get_minstack = Some ( mem:: transmute :: < * const ( ) , F > ( f) ) ;
You can’t perform that action at this time.
0 commit comments