diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-03-19 18:09:49 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:54:35 +0200 |
commit | 226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce (patch) | |
tree | c3e729921d4fa775c2ad5fc34cda54cdbb30d120 /hurd | |
parent | 71232da3b37b33d41c593c153a4a612067ff83cd (diff) | |
download | glibc-226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce.tar.gz glibc-226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce.tar.xz glibc-226f1f8a94427a7ae0b4dc8f5ef9cc765ba6b5ce.zip |
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>
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdfault.c | 8 |
1 files 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 |