From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id 2022D3858426 for ; Sun, 19 Mar 2023 15:11:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2022D3858426 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x12a.google.com with SMTP id g17so12039223lfv.4 for ; Sun, 19 Mar 2023 08:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679238661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qjf+9qbbERxe/2p0Nj3/cUrSE1RTMyqL//28DdI1no0=; b=Ywt0OuAN+p8RtYYRsX2qfGiyvi6uFAWGvd6IjbId0PuXC9h8j1QAvufTMJQ5rJeD6u 5N6uhSEz+yiqv20J748zCHRjS21x7ZlwDMqZ0x/TY9i2A8HQatowsH9JWMpiv3QWyVZS WyAcCyQMLxkIOwqW0wEnhVMOHXj+L/vhAcys/HqdgsvtLtniQilb22yZgpOs0NYQzGWr D2NSZx3eHnolqkpOYZeI3d+HnLs+f3jHUFa9lkR6eQUbPvbRkdUbSeYa/7w05Rrtu5se BWqBomJQjIzYDpeIyHaU0tSsjEecCjgm7R3dtopuohL3OXCGlgHYhvnFc4/hgFxv6i/0 aAww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679238661; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qjf+9qbbERxe/2p0Nj3/cUrSE1RTMyqL//28DdI1no0=; b=sgKalmEVlzdMo5s5OpXsoWi/eTKSydx7CttxbLl5EKdKhnPImwu3PySDfeW86QObxa oGWotgfipF8OhSg9MXbXyNJqe8zrMeSgvWM32xEbMQt8aMfnO8wcqFtbuMXuNyXj5FMP uwS5xz74yHPsuBmarP3mCSPdQbLyFVFa0rdB/G1Csu9zvkxCbFfMrExbA5m9OvmsYwts p0N2CSCQdcK/y3TM1HK0zJ1Y7M3m0IooOdm0a2ifOGhTJbWO1lup0H8BKgv8QecR7kt6 DUqdTMDsdnJgdY7eSP/Bst2WlAu1nEJmFT9P3XofaODH1xuJF141LcNQdGUszJah0Zg7 pu5A== X-Gm-Message-State: AO0yUKUWTnQJj+sLYzSTWcbrv0ww4SPlt4M5yDORVp+XbI2LM1dLCIiP +2ZCYZa+ow+EyfI18ou1sUiJukFnaYyF8Q== X-Google-Smtp-Source: AK7set9xEzg0G9JVy1DaxIFZ8xSwkORTxBP7YnFzY9h75gPaE8gPUExKGtmGI/dBB8prjTYkWH014Q== X-Received: by 2002:ac2:484d:0:b0:4dd:821c:3688 with SMTP id 13-20020ac2484d000000b004dd821c3688mr6027136lfy.66.1679238661426; Sun, 19 Mar 2023 08:11:01 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:577a:76f4:df43:5e66]) by smtp.gmail.com with ESMTPSA id m19-20020ac24253000000b004e90dee5469sm1274089lfl.157.2023.03.19.08.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:11:01 -0700 (PDT) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault , Sergey Bugaev Subject: [RFC PATCH glibc 06/34] hurd: Swap around two function calls Date: Sun, 19 Mar 2023 18:09:49 +0300 Message-Id: <20230319151017.531737-7-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230319151017.531737-1-bugaevc@gmail.com> References: <20230319151017.531737-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: ...to keep `sigexc' port initialization in one place, and match what the comments say. No functional change. Signed-off-by: Sergey Bugaev --- hurd/hurdfault.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c index a81e7280..4340897d 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 -- 2.39.2