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.help Subject: Re: What does the error "Process not running" mean? Date: Wed, 09 Feb 2022 16:17:32 +0200 Message-ID: <83pmnwunsz.fsf@gnu.org> References: <87sfszu2ls.fsf@gnu.org> <3qySp5xSA2V0n9C8vwql9UbGKia8POa7OZcDnXg6e8jvW59uKuICMg8MMi5o-drq2sIcWWOejQJhal9aBXZaZM09a6oyenNylYnn5Qjp-H8=@protonmail.com> <6Ox0QxOSiVddeNsCaACeldkV9F-Nh9dM-rRERWveYqhG8t126cIm2MGmadX7Uy8YL-IQX9-Y__ZjAwEKArVB5v81UoZWZ7U4_1R70ywhZZY=@protonmail.com> <8jy--UTf4wNbxysxHArjzE3ADfF5mB_ZsfnFd7sgKpf_GM_9O5YqVK1PH1QbnoizHbb6HonK-BeQEQx0OpCmSRnMSpJzNTcHHXASGOoiD9I=@protonmail.com> <0exCUWooGz4gRj1cdyO2isMWNvQjJYG7ewlmlP4yVyI0TcmLay25bHVnvt9HS1COppfJrHcWLaIi5WHaAQ-fOZuwq0UcYLtOv3yca17aha0=@protonmail.com> <87pmny8nb4.fsf@gnu.org> <83zgn2wi8u.fsf@gnu.org> <87zgn149eu.fsf@gmail.com> <83a6f1w6it.fsf@gnu.org> <87o83g4ehe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4387"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 09 17:21:45 2022 Return-path: Envelope-to: geh-help-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 1nHpix-0000r0-Vm for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 17:21:44 +0100 Original-Received: from localhost ([::1]:38536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHpiw-0007Jy-8U for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 11:21:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHnn2-0003nB-I2 for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 09:17:55 -0500 Original-Received: from [2001:470:142:3::e] (port=58214 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHnmw-0008Ql-PW for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 09:17:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2Ovg8V+7CTYJf1qWMb/hod3XB5Rv/uXIm5nvenxWGF0=; b=PCT/vd+NlcKuCqF5Knkq zgLN/+9C6Xn6ebvGs6yHd+Ohx1tbL1NKrGDkwtHusPX+v9OzQfZkzDz7rIY0p1x7AgEupS/OX76PB xZ2npf4O4ScNJayc7dJKDDZQRDKG9+nI2pnUQWSsVRagWKXGy+XoLRAvamSY7dgdcL5eKqpMReBjf Q7+DAxAE1cWAIZUK/AWszwWQ8OdSJENPhaTcLnbgGbEPdLYl8pwUrTcgAy8MC7veFvUBHTc2NMVE6 Y+Td6cJe1EF6+qw8MjlgYIIHKnIeP1jMwyg5KKnqWWCc1UxWcIqTwNbwXImFjtdDTukSuPVzVWKbH jqW6jxLtyhYO3g==; Original-Received: from [87.69.77.57] (port=4070 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 1nHnmu-0007PG-Ek for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 09:17:42 -0500 In-Reply-To: <87o83g4ehe.fsf@gmail.com> (message from Robert Pluim on Wed, 09 Feb 2022 09:43:25 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135869 Archived-At: > From: Robert Pluim > Cc: help-gnu-emacs@gnu.org > Date: Wed, 09 Feb 2022 09:43:25 +0100 > > >>>>> On Tue, 08 Feb 2022 20:35:38 +0200, Eli Zaretskii said: > > >> From: Robert Pluim > >> Date: Tue, 08 Feb 2022 17:20:41 +0100 > >> Cc: Stefan Monnier > >> > >> Iʼd rather someone with the requisite skills and tolerance for Windows > >> changed the Emacs select emulation to remove the limit (perhaps by > >> using the Gnulib 'select' module). > > Eli> Why do you think the Gnulib module is free from the same (or similar) > Eli> limitation? Isn't FD_SETSIZE = 64 in winsock2.h? > > It is, but youʼre allowed to set it higher, as far as I know. Not with the Gnulib emulation, AFAICT, since they call the same API we call in Emacs, which is limited to waiting on 64 handles. > Maybe it would be enough to just call winsock `select' from Emacs' > select emulation, but only for sockets. That's ugly, complicated (sockets are handles, file descriptors aren't), and in some use cases will still hit the limit. These half-measures aren't the kind of a solution I'd consider as good candidates for replacing the current code. We should probably use WSAAsyncSelect for sockets, and/or use several threads, each one watching 64 handles, to wait on 64*N handles. _That_ would be worth it. > Eli> Also, the pselect emulation in Emacs also emulates SIGCHLD from > Eli> sub-processes, something the Gnulib module does not AFAIR. > > Thatʼs only needed for real sub-processes, not sockets, no? Yes, but we still need it. > Eli> And finally, Gnulib dropped Windows 9X support long ago, so its module > Eli> will not run on those old versions (and actually is unlikely to run > Eli> even on Windows XP, as they've abandoned that as well). > > At some point we have to stop supporting ancient platforms. At some point, yes, and the motivation should be more serious than be able to use internal Windows APIs freely.