Subject: Re: bug#57854: 29.0.50; Different exit code in Emacs and terminal for identical process

From: Eli Zaretskii <[email-masked]>
Date: Sat, 17 Sep 2022 09:05:51 +0300

[Please use "Reply All" to reply, to keep the bug tracker on the CC.]

> From: dalanicolai <[email-masked]>
> 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?