X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.c;h=cb6fcb0e97e209bfa4f6993a1fb0789786dc16ce;hb=ccc6c35c6d30b2c600c1388052b36f3a7dc08361;hp=8a44604e8dc90214a7d8be6fc538fae93cd16764;hpb=92c8db80e039f60623e53a0b9355cf0a9ec49f3d;p=sbcl.git diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 8a44604..cb6fcb0 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -191,12 +191,15 @@ main(int argc, char *argv[], char *envp[]) lispobj initial_function; + interrupt_init(); + block_blockable_signals(); + setlocale(LC_ALL, ""); /* KLUDGE: os_vm_page_size is set by os_init(), and on some * systems (e.g. Alpha) arch_init() needs need os_vm_page_size, so * it must follow os_init(). -- WHN 2000-01-26 */ - os_init(); + os_init(argv, envp); arch_init(); gc_init(); validate(); @@ -328,7 +331,6 @@ main(int argc, char *argv[], char *envp[]) gc_initialize_pointers(); - interrupt_init(); arch_install_interrupt_handlers(); os_install_interrupt_handlers(); @@ -337,10 +339,6 @@ main(int argc, char *argv[], char *envp[]) SetSymbolValue(POSIX_ARGV, alloc_base_string_list(sbcl_argv),0); free(sbcl_argv); - /* Install a handler to pick off SIGINT until the Lisp system gets - * far enough along to install its own handler. */ - sigint_init(); - FSHOW((stderr, "/funcalling initial_function=0x%lx\n", initial_function)); create_initial_thread(initial_function); lose("CATS. CATS ARE NICE.");