X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-linux-os.c;h=5b55fdc3792c1e779d1aace0adf5878716635bac;hb=5e92e9ed61903658015c2a75c79a32ad41dbd29d;hp=740d3825f898934715bb8a409800c4e8f4714efb;hpb=51fb6a8421407c5ca5824fbd47f1334e682c0fee;p=sbcl.git diff --git a/src/runtime/x86-linux-os.c b/src/runtime/x86-linux-os.c index 740d382..5b55fdc 100644 --- a/src/runtime/x86-linux-os.c +++ b/src/runtime/x86-linux-os.c @@ -98,7 +98,7 @@ int arch_os_thread_init(struct thread *thread) { if (modify_ldt (1, &ldt_entry, sizeof (ldt_entry)) != 0) { modify_ldt_lock=0; /* modify_ldt call failed: something magical is not happening */ - return -1; + return 0; } __asm__ __volatile__ ("movw %w0, %%fs" : : "q" ((n << 3) /* selector number */ @@ -117,10 +117,8 @@ int arch_os_thread_init(struct thread *thread) { sigstack.ss_sp=((void *) thread)+dynamic_values_bytes; sigstack.ss_flags=0; sigstack.ss_size = 32*SIGSTKSZ; - sigaltstack(&sigstack,0); - if(sigaltstack(&sigstack,0)<0) { + if(sigaltstack(&sigstack,0)<0) lose("Cannot sigaltstack: %s\n",strerror(errno)); - } #endif return 1; }