From: Eli Zaretskii <eliz@gnu.org>
To: Ken Brown <kbrown@cornell.edu>
Cc: 49496@debbugs.gnu.org
Subject: bug#49496: 28.0.50; process-tests/fd-setsize-no-crash/make-network-process hangs on Cygwin
Date: Fri, 09 Jul 2021 21:18:43 +0300 [thread overview]
Message-ID: <83bl7bcpvg.fsf@gnu.org> (raw)
In-Reply-To: <8dec2b34-f041-35e8-1971-da2596a8b760@cornell.edu> (message from Ken Brown on Fri, 9 Jul 2021 14:01:33 -0400)
> From: Ken Brown <kbrown@cornell.edu>
> Date: Fri, 9 Jul 2021 14:01:33 -0400
>
> It is possible to work around this problem by disabling the credential exchange
> as in the following patch:
>
> diff --git a/src/process.c b/src/process.c
> index b8c3e4ecfb..01548c8ab5 100644
> --- a/src/process.c
> +++ b/src/process.c
> @@ -3355,6 +3355,12 @@ connect_network_socket (Lisp_Object proc, Lisp_Object
> addrinfos,
> xerrno = EMFILE;
> continue;
> }
> +#ifdef CYGWIN
> + /* Avoid possible hang in connect/accept. */
> + if (family == AF_LOCAL && p->socktype == SOCK_STREAM
> + && setsockopt (s, SOL_SOCKET, SO_PEERCRED, 0, 0) < 0)
> + report_file_error ("Cannot disable credential exchange", Qnil);
> +#endif
> }
> if (p->is_non_blocking_client && ! (SOCK_NONBLOCK && socket_to_use < 0))
>
> But this seems too drastic just to fix a potential problem that doesn't seem to
> occur in practice, but only in the contrived situation of
> process-tests/fd-setsize-no-crash/make-network-process. So my preference is to
> simply skip that test on Cygwin.
>
> OK?
Yes, OK. But please explain there in a comment why we skip that, with
a reference to this bug.
(FWIW, I consider the process-tests suite to be not useful enough, in
that it many times tests behavior that is only guaranteed to happen on
GNU/Linux, and is not really required, nor should be expected, in
portable Lisp programs. So it doesn't surprise me that some of the
tests fail on some systems.)
next prev parent reply other threads:[~2021-07-09 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 18:01 bug#49496: 28.0.50; process-tests/fd-setsize-no-crash/make-network-process hangs on Cygwin Ken Brown
2021-07-09 18:18 ` Eli Zaretskii [this message]
2021-07-09 20:42 ` Ken Brown
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=83bl7bcpvg.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=49496@debbugs.gnu.org \
--cc=kbrown@cornell.edu \
/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).