]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Swap around two function calls
authorSergey Bugaev <bugaevc@gmail.com>
Sun, 19 Mar 2023 15:09:49 +0000 (18:09 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 2 Apr 2023 22:54:35 +0000 (00:54 +0200)
...to keep `sigexc' port initialization in one place, and match what the
comments say.

No functional change.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230319151017.531737-7-bugaevc@gmail.com>

hurd/hurdfault.c

index a81e72803f8d5bcd665c69457e531507d9f3b8e3..4340897dee5bbf49427f6c659da6df52c5f4ebec 100644 (file)
@@ -174,14 +174,14 @@ _hurdsig_fault_init (void)
   err = __mach_port_allocate (__mach_task_self (),
                              MACH_PORT_RIGHT_RECEIVE, &sigexc);
   assert_perror (err);
-  err = __mach_port_allocate (__mach_task_self (),
-                             MACH_PORT_RIGHT_RECEIVE, &forward_sigexc);
+  err = __mach_port_insert_right (__mach_task_self (), sigexc,
+                                 sigexc, MACH_MSG_TYPE_MAKE_SEND);
   assert_perror (err);
 
   /* Allocate a port to receive the exception msgs forwarded
      from the proc server.  */
-  err = __mach_port_insert_right (__mach_task_self (), sigexc,
-                                 sigexc, MACH_MSG_TYPE_MAKE_SEND);
+  err = __mach_port_allocate (__mach_task_self (),
+                             MACH_PORT_RIGHT_RECEIVE, &forward_sigexc);
   assert_perror (err);
 
   /* Set the queue limit for this port to just one.  The proc server will