From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Writing to socket after shutdown Date: Fri, 27 Aug 2010 08:22:25 -0700 Message-ID: References: <271785.80725.qm@web112302.mail.gq1.yahoo.com> <213326.52673.qm@web112306.mail.gq1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282922365 30953 80.91.229.12 (27 Aug 2010 15:19:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2010 15:19:25 +0000 (UTC) Cc: Guile Devel To: Jon Herron Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 27 17:19:23 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Op0iB-0003Xj-4A for guile-devel@m.gmane.org; Fri, 27 Aug 2010 17:19:23 +0200 Original-Received: from localhost ([127.0.0.1]:54481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op0iA-0002TL-2E for guile-devel@m.gmane.org; Fri, 27 Aug 2010 11:19:22 -0400 Original-Received: from [140.186.70.92] (port=48185 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op0i1-0002TG-EA for guile-devel@gnu.org; Fri, 27 Aug 2010 11:19:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Op0i0-0008MV-9L for guile-devel@gnu.org; Fri, 27 Aug 2010 11:19:13 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:50516 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Op0i0-0008MP-1T for guile-devel@gnu.org; Fri, 27 Aug 2010 11:19:12 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id CA02DD1189; Fri, 27 Aug 2010 11:19:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=niQnuh6GIJy5SWwYOJXVCkP9iQw=; b=n+Jj4U Qq6hEMkQQUHyGF4Rx+34UjX54WpUxlSCWde/vrkBzK5CAzRkvww9XXCw/wa6El2V 2DO57XZSh6bShsBbkCCgqUAlgaATAUuotuFMub8sb7BVRt6ewW2Hg4dtu45vv19n x7hwRaV4h5UGh01GPz3mllkS94o/L4T8pTYxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=FoE9mpTu+0UIEmpWWPOPSCDTX5zgqZiO 02J2faQ1GVRBgG63AiPdtJl+H9i++mhNs1ZGTXvBePron4OmWMo9HlYXyoc/z3Uv 8t44CBEfV3kqa7bNF3MMvoGzKduEf7iP2C8AOZoQyAvoHwP35HqB7Tx4K6aJL8NJ 2ZoQTLn9SZw= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B2AF1D1187; Fri, 27 Aug 2010 11:19:10 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [75.28.21.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3B1E9D1185; Fri, 27 Aug 2010 11:19:09 -0400 (EDT) In-Reply-To: <213326.52673.qm@web112306.mail.gq1.yahoo.com> (Jon Herron's message of "Fri, 27 Aug 2010 07:01:19 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 716165B4-B1EE-11DF-BB72-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10791 Archived-At: On Fri 27 Aug 2010 07:01, Jon Herron writes: > Hi Andy - > > Thanks for the reply. I think SIGPIPE is indeed the right thing to do. I ended > up adding a sighandler to my application and it solved the problem. I suppose it > would be nice for Guile to at least display the error on exit - as in the gdb > REPL example of yours, if not throw an exception so the user's application can > catch. It seems to me the sighandler is more of the C way, where catch/throw is > closer to the Scheme way - not sure if that is general consensus or not. I filed this bug. https://savannah.gnu.org/bugs/index.php?30890 I think you're right that we should handle signals, but we need to do so in a way that is not going to interfere adversely with embedded uses of Guile. And then there are threads. Bleagh ;) Andy -- http://wingolog.org/