From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: SCM_SYSCALL Date: Sun, 23 Jun 2013 23:25:10 +0200 Message-ID: <87li607c5l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1372022731 31498 80.91.229.3 (23 Jun 2013 21:25:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2013 21:25:31 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 23 23:25:31 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uqrmt-0005SA-L4 for guile-devel@m.gmane.org; Sun, 23 Jun 2013 23:25:31 +0200 Original-Received: from localhost ([::1]:48751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uqrmt-0006PK-2m for guile-devel@m.gmane.org; Sun, 23 Jun 2013 17:25:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uqrmo-0006P9-TN for guile-devel@gnu.org; Sun, 23 Jun 2013 17:25:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uqrmn-0000q3-Kp for guile-devel@gnu.org; Sun, 23 Jun 2013 17:25:26 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uqrmn-0000py-Dk for guile-devel@gnu.org; Sun, 23 Jun 2013 17:25:25 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uqrml-0005NH-W3 for guile-devel@gnu.org; Sun, 23 Jun 2013 23:25:23 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 23:25:23 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Jun 2013 23:25:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Messidor an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:g2oMtPt6Q8oT7tNsdJrBS5wJU0g= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16502 Archived-At: Hello Guilers! We have this (since 2010): --8<---------------cut here---------------start------------->8--- # define SCM_SYSCALL(line) \ do \ { \ errno = 0; \ line; \ if (errno == EINTR) \ { \ SCM_ASYNC_TICK; \ continue; \ } \ } \ while(0) --8<---------------cut here---------------end--------------->8--- It turns out that the effect upon EINTR is to leave the loop. So typically, fport_fill_input just throws to system-error and reveals the EINTR, contrary to SCM_SYSCALL intends to do. This is easily fixed, but the question is whether this would affect users in bad ways. For example, applications might be relying on the ability to do (catch 'system-error ... (lambda args (if (= EINTR (system-error-errno args)) ...))) Should the fix be delayed until 2.2? WDYT? Ludo’.