From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: wait_reading_process_ouput hangs in certain cases (w/ patches) Date: Mon, 06 Nov 2017 22:17:24 +0200 Message-ID: <83po8vrwkr.fsf@gnu.org> References: <83lgjz8eiy.fsf@gnu.org> <831slp98ut.fsf@gnu.org> <83tvyj62qg.fsf@gnu.org> <83r2tetf90.fsf@gnu.org> <5150d198-8dd3-9cf4-5914-b7e945294452@binary-island.eu> <83tvy7s6wi.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1509999445 11480 195.159.176.226 (6 Nov 2017 20:17:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 20:17:25 +0000 (UTC) Cc: ml_emacs-lists@binary-island.eu, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 06 21:17:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBnpg-0002ll-Lw for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2017 21:17:20 +0100 Original-Received: from localhost ([::1]:50125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBnpn-0003Os-1b for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2017 15:17:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBnph-0003OR-MO for emacs-devel@gnu.org; Mon, 06 Nov 2017 15:17:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBnpe-0006dd-Eg for emacs-devel@gnu.org; Mon, 06 Nov 2017 15:17:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBnpe-0006dY-Bx; Mon, 06 Nov 2017 15:17:18 -0500 Original-Received: from [176.228.60.248] (port=3124 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eBnpd-0005di-M5; Mon, 06 Nov 2017 15:17:18 -0500 In-reply-to: (message from Paul Eggert on Mon, 6 Nov 2017 10:24:42 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219954 Archived-At: > Cc: emacs-devel@gnu.org > From: Paul Eggert > Date: Mon, 6 Nov 2017 10:24:42 -0800 > > On 11/06/2017 08:34 AM, Eli Zaretskii wrote: > > When we call emacs_read in other cases in > > that function, the result is an ssize_t, a signed type of the same > > width as size_t. > > As a minor point, POSIX does not require that ssize_t be the same width > as size_t, or that ptrdiff_t be the same width as size_t. Emacs has run > (and as far as I know, still would run) on unusual platforms where > ssize_t is narrower than size_t. Yes, I know. We could replace ssize_t with ptrdiff_t if needed.