about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-13 10:23:08 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-13 11:24:22 +0100
commit0f73c170379a34363c95e6ceab7b30bd4fe66c25 (patch)
tree60b84900d6b0d931a12164c889cae7cf4cee0c91
parent2aa072d395bf93bfc6aa570983911f1db40a8dac (diff)
downloadglibc-0f73c170379a34363c95e6ceab7b30bd4fe66c25.tar.gz
glibc-0f73c170379a34363c95e6ceab7b30bd4fe66c25.tar.xz
glibc-0f73c170379a34363c95e6ceab7b30bd4fe66c25.zip
hurd: Make sure signals get started
Now that _hurd_libc_proc_init is idempotent, we can always call it,
independently of the __libc_multiple_libcs test which may not match
whether signals should be started or not.
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index a3d2fdaba0..1827479f86 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -58,14 +58,14 @@ posixland_init (int argc, char **argv, char **envp)
 {
   __libc_multiple_libcs = &_dl_starting_up && !_dl_starting_up;
 
+  /* Now we have relocations etc. we can start signals etc.  */
+  _hurd_libc_proc_init (argv);
+
   /* Make sure we don't initialize twice.  */
   if (!__libc_multiple_libcs)
     {
       /* Set the FPU control word to the proper default value.  */
       __setfpucw (__fpu_control);
-
-      /* Now we have relocations etc. we can start signals etc.  */
-      _hurd_libc_proc_init (argv);
     }
   else
     {