From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57854: 29.0.50; Different exit code in Emacs and terminal for identical process Date: Sat, 17 Sep 2022 09:05:51 +0300 Message-ID: <83h716358g.fsf@gnu.org> References: <83h7174ner.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57854@debbugs.gnu.org To: dalanicolai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 08:06:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oZQxy-0005PP-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 08:06:14 +0200 Original-Received: from localhost ([::1]:35318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZQxx-0001eS-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 02:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQxn-0001eK-4I for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZQxm-0006aw-Sf for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZQxm-0005uc-J1 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57854-submit@debbugs.gnu.org id=B57854.166339475922717 (code B ref 57854); Sat, 17 Sep 2022 06:06:02 +0000 Original-Received: (at 57854) by debbugs.gnu.org; 17 Sep 2022 06:05:59 +0000 Original-Received: from localhost ([127.0.0.1]:44960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZQxi-0005uL-T5 for submit@debbugs.gnu.org; Sat, 17 Sep 2022 02:05:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZQxi-0005u6-02 for 57854@debbugs.gnu.org; Sat, 17 Sep 2022 02:05:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQxc-0006aB-BN; Sat, 17 Sep 2022 02:05:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wzdU/SwNd3BtMw1KKojAg0HMu158C4KziWcV2Lsdvuw=; b=jrU43xQxvu59 /TNQBA6SoMAxS6VpoPyfaoVhMtFHNu4uHPC/eNyJjbmkDH8ZQjkNFAxjBE/DPBo68vG84NTxBDruj sY3ePUvPC4bpJiJFLaejVKgldZocjJ7SLe2OWUJ5CsZtGGZ48vOKgMiALO2Qox9n3jn1cU9FvP9yX FZWa9Z8o12s5uMDCqFE8Vj8amnkfPgZtO5TwZRIOIWXWCaJzAbxPpv4s9R6e/P4y4/Z9EfOXw9E7X +ulreZw6Glwn5VBVZIyweDY7YdlVaocVkjpBA8S0fLZUAex9BaPYGCAT5ItKgck/vnH9ASWI0HQwv T4afF1DPXb3aVZ8c+w5PGA==; Original-Received: from [87.69.77.57] (port=3703 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZQxb-00043p-PW; Sat, 17 Sep 2022 02:05:52 -0400 In-Reply-To: (message from dalanicolai on Fri, 16 Sep 2022 21:20:17 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242826 Archived-At: [Please use "Reply All" to reply, to keep the bug tracker on the CC.] > From: dalanicolai > Date: Fri, 16 Sep 2022 21:20:17 +0200 > > The code I was using is `(call-process "pdftocio" nil nil nil buffer-file-name)` (from the buffer visiting the file) This makes the null device the standard input of the program. What happens if you invoke pdftocio from the shell prompt with a similar redirection: $ pdftocio ... < /dev/null (replace "..." with whatever command-line arguments you need, probably just the file name). What exit code does the program return then?