unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Last change to process.c breaks fetching pop3 mail (gnus/pop3.el)
Date: 31 May 2004 23:06:43 +0200	[thread overview]
Message-ID: <m34qpwnw64.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <20040530160908.436326.FMU25511@nutty-waffle-cone.splode.com>

Noah Friedman <friedman@splode.com> writes:

> I left a comment in the source that explained why I removed the call.  In
> summary, calling remove_process there does 2 things wrong:
>
>   (1) network process objects are removed from Vprocess_alist even if
>       delete-exited-processes is nil

The doc string for delete-process says:

        Delete PROCESS: kill it and forget about it immediately.

To me 'immediately' means that the value of delete-exited-processes
does not apply here.  So I don't agree this is an error.

>   (2) network processes never have their sentinel called a final time

Right, that's a real bug.

The following patch should fix that (after undoing your change).

*** process.c	24 May 2004 09:49:49 +0200	1.429
--- process.c	31 May 2004 22:28:55 +0200
***************
*** 764,769 ****
--- 764,770 ----
      {
        XPROCESS (process)->status = Fcons (Qexit, Fcons (make_number (0), Qnil));
        XSETINT (XPROCESS (process)->tick, ++process_tick);
+       status_notify ();
      }
    else if (XINT (XPROCESS (process)->infd) >= 0)
      {


Unless you see problems with this, I'll install the patch tomorrow.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-05-31 21:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30 22:34 Last change to process.c breaks fetching pop3 mail (gnus/pop3.el) Kim F. Storm
2004-05-30 23:09 ` Noah Friedman
2004-05-31 21:06   ` Kim F. Storm [this message]
2004-05-31 21:34     ` Noah Friedman
2004-06-02  3:43       ` Richard Stallman
2004-06-02 13:51         ` Kim F. Storm
2004-06-02 22:56           ` Richard Stallman
2004-06-02 23:08             ` Noah Friedman
2004-06-03 11:48             ` Kim F. Storm
2004-06-03 22:37               ` Kim F. Storm
2004-06-03 23:26                 ` Noah Friedman
2004-06-04 14:20                   ` Kim F. Storm
2004-06-04 17:33                 ` Richard Stallman
2004-06-06 22:36                   ` Kim F. Storm
2004-06-04  2:03               ` Richard Stallman
2004-06-04  8:10                 ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m34qpwnw64.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).