From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: master 9fc3b00373: Improve `restart-emacs' error reporting Date: Mon, 18 Apr 2022 11:21:03 +0200 Message-ID: References: <165027259019.5917.10350012783877143480@vcs2.savannah.gnu.org> <20220418090310.749C3C01684@vcs2.savannah.gnu.org> <8735iaiwsf.fsf@yahoo.com> <8735ialpot.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9509"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Emacs developers To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 18 11:24:56 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngNcu-0002Gs-8f for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 11:24:56 +0200 Original-Received: from localhost ([::1]:50212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngNcr-0007gT-Ia for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 05:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngNZN-0005CO-Jr for emacs-devel@gnu.org; Mon, 18 Apr 2022 05:21:22 -0400 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]:45834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngNZM-0005WM-1W for emacs-devel@gnu.org; Mon, 18 Apr 2022 05:21:17 -0400 Original-Received: by mail-oi1-x22e.google.com with SMTP id 12so14198748oix.12 for ; Mon, 18 Apr 2022 02:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BV69W0MkjI5RQO/7TWOH9p7dR0RJxUN1sUlbAWq9uSo=; b=WM60/uRK2hwFx9kkm28DFjSqfcd0S0ewLCELPv4JLrHCP0FiRsdyWt2P3umQfrKD/C O4Nfd0A+xFMAcvdgbzxNa5/h0J5bw43jf9YrvakrBwKcS/7nTMbMoovgefGif1xJvEtB YmNcq5q6Jlz73qt18OYVmWF9ND2d9qlOI0liXPWULxFtLq6PN8bWb/GndNWdCiKxDTZX 9fn8ORG3SAzD/JVpCTi9b+ZvoE6lgOPfRtSLgDKOMsZBiwgNiB4MbqoIdU9S0n/chzTq qxLtDxD2dj984gnU7fphEoKeLRhC4sBDj3QmB+FZBhWl1uIvgz8GhYhvjYh5V22MlC4q nB3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BV69W0MkjI5RQO/7TWOH9p7dR0RJxUN1sUlbAWq9uSo=; b=s8J0UJkt5h153wF+WZG9SXTi8Zupjzlt2cZ6YCkDl11GW94s5PI3l5HQZ5llrScBoP dr9uF+IDuxYeXY8lTv1Pw3tmDoF3he1CpV0yla4usBLWyqNAFK4P+hfkUR4kWk2gMkMs lGfQMSMhCGev1YT3R1YZsasX9eqQjJgvvh/XqBWvwhpEAJWeW/qkwceOSh3ZQMwGdCOt 9cO+sRxlGUxGwNfIv18rU3mN38KQWEcYDR5S0AirkZAI89VEDVYhpIlJfkujLDP0HOGc 8wYsFC0rjo1t0lW3Jc/0JcnnjRmbkl19CLhHgbdnsm18FaUGcJKwNLFLtldnNVY1bntB irkg== X-Gm-Message-State: AOAM5310X9ZB0w6IBGG+L87dMNtZrjFu2ZJBosvfhGQUX1TX8zXhQovM d8U4qO7qAzLX98j3GQr1rYM4cLuaz2kTFfOa0Ig= X-Google-Smtp-Source: ABdhPJzsRGrA2jqhoxYZQiCy+GSyJ93Zyr9xPKmDgKLCDxdxWNcwdeaJ/HfYJy2o7U+3IvGMpjK2Z1vsCwpOCPArX8A= X-Received: by 2002:a05:6808:10d0:b0:2fa:6b68:ba95 with SMTP id s16-20020a05680810d000b002fa6b68ba95mr6579957ois.134.1650273674777; Mon, 18 Apr 2022 02:21:14 -0700 (PDT) In-Reply-To: <8735ialpot.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288619 Archived-At: Am Mo., 18. Apr. 2022 um 11:14 Uhr schrieb Lars Ingebrigtsen : > > Po Lu writes: > > > How would this work if initial_argv[0] is a binary in the PATH, not a > > file name? > > Oh, it won't. But I was thinking we'd need to store the actual binary > we're using (because of --chdir/default-directory problems) somewhere, > so I'll be adjusting the test and code from argv[0] to the actual > binary in a while. On GNU/Linux, use getauxval(AT_EXECFN) or (probably even better) getauxval(AT_EXECFD) with fexecve.