public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Swap around two function calls
@ 2023-04-02 23:27 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-04-02 23:27 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce
commit 226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce
Author: Sergey Bugaev <bugaevc@gmail.com>
Date: Sun Mar 19 18:09:49 2023 +0300
hurd: Swap around two function calls
...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>
Diff:
---
hurd/hurdfault.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
index a81e72803f..4340897dee 100644
--- a/hurd/hurdfault.c
+++ b/hurd/hurdfault.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-02 23:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-02 23:27 [glibc] hurd: Swap around two function calls Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).