From patchwork Sun Mar 19 15:09:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 66594 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 72D8B3887F60 for ; Sun, 19 Mar 2023 15:13:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72D8B3887F60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679238825; bh=Qjf+9qbbERxe/2p0Nj3/cUrSE1RTMyqL//28DdI1no0=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=VcSgGmMGIi+IfV7/imrTfj3oC9PQYZpyub2qap/gL6YGRQOLN4+c2RaqavOSGLVnN OpUHZnnDUfy2e9ic33Sf1kUjiiuusSBOF+S6ZQrmzyeVuOgkxMGLVuPfUV4mk5T/Lp swXQSg3hT1GrlVlWVc5W5RWTWJTjEFnm6wqvPrSQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 Received: by mail-lf1-x12a.google.com with SMTP id g17so12039223lfv.4 for ; Sun, 19 Mar 2023 08:11:03 -0700 (PDT) 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) 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 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" ...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