From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43083 Path: main.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.gnus.general Subject: Re: display-time, mail-icon and POP3 mailboxes Date: 13 Feb 2002 23:13:48 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <5x3d0558tf.fsf__34833.1018038609$1042212447@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: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178235 15689 80.91.224.250 (21 Oct 2002 05:30:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:30:35 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org Return-Path: Original-Received: (qmail 1120 invoked from network); 13 Feb 2002 22:18:54 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 13 Feb 2002 22:18:54 -0000 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 16b7jS-00047G-00; Wed, 13 Feb 2002 16:18:30 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 13 Feb 2002 16:18:27 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA10238 for ; Wed, 13 Feb 2002 16:18:19 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g1DMIGv26990 for ding@hpc.uh.edu; Wed, 13 Feb 2002 16:18:16 -0600 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA10222 for ; Wed, 13 Feb 2002 16:13:11 -0600 (CST) Original-Received: (qmail 1053 invoked by alias); 13 Feb 2002 22:13:06 -0000 Original-Received: (qmail 1048 invoked from network); 13 Feb 2002 22:13:06 -0000 Original-Received: from mail.filanet.dk (195.215.206.179) by gnus.org with SMTP; 13 Feb 2002 22:13:06 -0000 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 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43083 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