emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-processes and process sentinels not run.


From: Richard Stallman
Subject: Re: list-processes and process sentinels not run.
Date: Sat, 30 Sep 2006 20:03:59 -0400

    If a process status changes to exit and list-processes is called
    without there being idle time, then the process is removed in
    list_processes_1:

          if (EQ (symbol, Qsignal) || EQ (symbol, Qexit))
            remove_process (proc);

    and the process sentinel isn't run.

We should change that code to run the sentinel
if it needs to be run.  Would someone please do that?


      This can be demonstrated with:

        (let ((proc (start-process "test-seq" nil "/bin/sleep" "0")))
          (set-process-sentinel proc (lambda (proc msg)
                                       (message msg)))
          (while (delq nil (mapcar (lambda (p)
                                     (string-match "test-seq" (process-name p)))
                                   (process-list)))
            (list-processes)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]