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.devel Subject: Re: master 8dcb19f 4/4: Add a unit test testing interaction between threads and processes. Date: Sun, 24 Jan 2021 16:43:30 +0200 Message-ID: <83czxu4cq5.fsf@gnu.org> References: <83k0s34eo1.fsf@gnu.org> <83ft2r3t10.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: phst@google.com, emacs-devel@gnu.org To: p.stephani2@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 24 15:44:01 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l3gcT-00051X-Ek for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jan 2021 15:44:01 +0100 Original-Received: from localhost ([::1]:53096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3gcS-0002dJ-HC for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jan 2021 09:44:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3gbt-0001pd-Lw for emacs-devel@gnu.org; Sun, 24 Jan 2021 09:43:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59571) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3gbt-0004WS-4C; Sun, 24 Jan 2021 09:43:25 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l3gbs-0003V6-Gi; Sun, 24 Jan 2021 09:43:24 -0500 In-Reply-To: <83ft2r3t10.fsf@gnu.org> (message from Eli Zaretskii on Sun, 24 Jan 2021 05:36:43 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263341 Archived-At: > Date: Sun, 24 Jan 2021 05:36:43 +0200 > From: Eli Zaretskii > Cc: phst@google.com, emacs-devel@gnu.org > > > From: Philipp Stephani > > Date: Sat, 23 Jan 2021 21:34:28 +0100 > > Cc: Emacs developers , Philipp Stephani > > > I did verify that process-send-eof does cause 'cat' to exit, so the > > > problem is likely in some issue related to threads and what the test > > > assumes regarding what should happen here. > > > > What's surprising here is that "cat" exited with an exit status of 1, > > shouldn't that be normally impossible? > > I'm not sure this 1 exit status is not a red herring: when I manually > perform the steps for a single process and without any threads, 'cat' > exits with status zero. And when I run that single test, it hangs. Actually, "hangs" is inaccurate: it terminates with an error after 60 sec.