From: Eli Zaretskii <eliz@gnu.org>
To: Andrea Corallo <akrl@sdf.org>
Cc: emacs-devel@gnu.org
Subject: Re: Coping with errors in starting async compilations
Date: Mon, 18 Oct 2021 15:38:11 +0300 [thread overview]
Message-ID: <83tuheecek.fsf@gnu.org> (raw)
In-Reply-To: <xjf7deaafie.fsf@ma.sdf.org> (message from Andrea Corallo on Mon, 18 Oct 2021 08:44:41 +0000)
> From: Andrea Corallo <akrl@sdf.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 18 Oct 2021 08:44:41 +0000
>
> > Is comp-run-async-workers capable of coping with failures to launch a
> > sub-process due to stuff like insufficient resources? For example,
> > Emacs on MS-Windows doesn't allow to start more than 31 sub-processes
> > (including network connections, so it could be less than that), so
> > what happens when comp-run-async-workers attempts to start another
> > sub-process and that fails with EAGAIN? That should be handled like
> > reaching the limitation of comp-effective-async-max-jobs. Perhaps it
> > already is?
> >
> > Thanks.
>
> Hi Eli,
>
> good point, this is not handled. What should the intended behaivour we
> want? Restart new compilations failed with EAGAIN and wait to start new
> one?
Yes, just like you do when the number of running jobs reaches the
maximum allowed number: queue the rest for later execution. IOW,
effectively behave like comp-effective-async-max-jobs was lowered.
prev parent reply other threads:[~2021-10-18 12:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-17 19:36 Coping with errors in starting async compilations Eli Zaretskii
2021-10-18 8:44 ` Andrea Corallo
2021-10-18 12:38 ` Eli Zaretskii [this message]
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=83tuheecek.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=akrl@sdf.org \
--cc=emacs-devel@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).