From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: display-time, mail-icon and POP3 mailboxes Date: 13 Feb 2002 23:13:48 +0100 Message-ID: <5x3d0558tf.fsf@kfs2.cua.dk> References: <200202081357.g18Dvfw05454@aztec.santafe.edu> <5x1yfva7m8.fsf@kfs2.cua.dk> <5xn0yhrtye.fsf@kfs2.cua.dk> <200202111848.g1BIm0406891@aztec.santafe.edu> <5x3d07iojn.fsf@kfs2.cua.dk> <200202131538.g1DFcGc08698@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013639219 30787 195.204.10.66 (13 Feb 2002 22:26:59 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 13 Feb 2002 22:26:59 GMT Cc: emacs-devel@gnu.org, ding@gnus.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16b7re-00080T-00 for ; Wed, 13 Feb 2002 23:26:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16b7gS-0005Lj-00; Wed, 13 Feb 2002 17:15:24 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16b7dn-0004zR-00; Wed, 13 Feb 2002 17:12:39 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 0228C7C035; Wed, 13 Feb 2002 22:12:36 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200202131538.g1DFcGc08698@aztec.santafe.edu> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1093 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1093 Richard Stallman writes: > I haven't debugged this specifically with emacs, but in other > programs, it has been necessary to make connect non-blocking with > fcntl(s,F_SETFL,O_NONBLOCK) and then use the writefds of select to > know when the connect has completed (at least on GNU/Linux). > > Would you like to write that code? I could give it a try - but I can only test it on GNU/Linux, so I will need to make some sensible choices about how to conditionally support this feature. I think I will need to test for the availability of HAVE_SELECT, F_SETFL, O_NONBLOCK, and HAVE_GETPEERNAME (which is used to check whether the connect actually succeeded). But that might not work on all systems, so I may need to add a BROKEN_NON_BLOCKING_CONNECT define which can be set for systems where this doesn't work (just to be defencive). There is currently no HAVE_GETPEERNAME check in configure, but I suppose that can be added (by someone who speaks autoconf :-) -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel