From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48804 Path: main.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.gnus.general,gmane.emacs.xemacs.beta Subject: Re: Hang in process-send-string with nnimap Date: Mon, 06 Jan 2003 22:08:17 +0900 Organization: The XEmacs Project Sender: owner-ding@hpc.uh.edu Message-ID: <87d6na77em.fsf@tleepslib.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041858599 23061 80.91.224.249 (6 Jan 2003 13:09:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2003 13:09:59 +0000 (UTC) Cc: ding@gnus.org, Nevin Kapur , simon@xemacs.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18VX0t-0005zc-00 for ; Mon, 06 Jan 2003 14:09:56 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18VX0S-0001zX-00; Mon, 06 Jan 2003 07:09:28 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 06 Jan 2003 07:10:23 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA06997 for ; Mon, 6 Jan 2003 07:10:12 -0600 (CST) Original-Received: (qmail 15082 invoked by alias); 6 Jan 2003 13:09:11 -0000 Original-Received: (qmail 15077 invoked from network); 6 Jan 2003 13:09:09 -0000 Original-Received: from tleepslib.sk.tsukuba.ac.jp (mail@130.158.98.109) by 66.230.238.6 with SMTP; 6 Jan 2003 13:09:09 -0000 Original-Received: from steve by tleepslib.sk.tsukuba.ac.jp with local (Exim 3.36 #1 (Debian)) id 18VWzK-00025b-00; Mon, 06 Jan 2003 22:08:18 +0900 Original-To: xemacs-beta@xemacs.org In-Reply-To: (Nevin Kapur's message of "Thu, 05 Dec 2002 15:26:47 -0500") Original-Lines: 38 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Native Windows TTY Support, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48804 gmane.emacs.xemacs.beta:7238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48804 >>>>> "Nevin" == Nevin Kapur writes: Nevin> On trying to access a rather large IMAP hierarchy using Nevin> Gnus, XEmacs invariably hangs while checking for new mail. Nevin> The only way out is to kill the process. Simon Josefsson reports a similar problem, probably the same cause. Daiki Ueno sent a patch for 21.5 to address a hang on writing to a process. Here's a version for 21.4. Please apply and let me know if it helps. If you can get back to me in a day or so, it can go into 21.4.12. This should apply to pretty much any XEmacs 21.4, not necessary to update to 21.4.11, I believe. Index: src/process-unix.c =================================================================== RCS file: /pack/xemacscvs/XEmacs/xemacs/src/process-unix.c,v retrieving revision 1.20.2.5 diff -u -r1.20.2.5 process-unix.c --- src/process-unix.c 31 Oct 2002 15:08:28 -0000 1.20.2.5 +++ src/process-unix.c 6 Jan 2003 13:05:24 -0000 @@ -892,6 +892,7 @@ #endif set_descriptor_non_blocking (inchannel); + set_descriptor_non_blocking (outchannel); /* Record this as an active process, with its channels. As a result, child_setup will close Emacs's side of the pipes. */ -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.