From: Sean Whitton <spwhitton@spwhitton.name>
To: 60592@debbugs.gnu.org
Subject: bug#60592: 30.0.50; emacsclient: exit with a different code when the request times out
Date: Thu, 05 Jan 2023 22:47:49 -0700 [thread overview]
Message-ID: <87pmbsmcxm.fsf@melete.silentflame.com> (raw)
Hello,
When calling 'emacsclient --timeout N --eval' from scripts, it would be
nice if you could determine for sure when a failure was just due to a
timeout, rather than, say, a Lisp exception.
inotifywait(1) exits with code 2 to indicate a timeout.
emacsclient could do the same.
We might then consider adding a separate exit code for a Lisp error.
Then a failure of emacsclient to connect, a request that timed out, and
an error from Lisp would be readily distinguishable.
At present the best one could do is parse emacsclient's output, but
that doesn't seem robust.
--
Sean Whitton
next reply other threads:[~2023-01-06 5:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 5:47 Sean Whitton [this message]
2023-01-06 7:37 ` bug#60592: 30.0.50; emacsclient: exit with a different code when the request times out Eli Zaretskii
2023-01-06 17:57 ` Sean Whitton
2023-01-06 18:12 ` Eli Zaretskii
2023-01-06 19:03 ` Sean Whitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmbsmcxm.fsf@melete.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=60592@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).