* Re: list-processes and process sentinels not run.
[not found] <871wptl7hq.fsf@escpc40.esc.rl.ac.uk>
@ 2006-10-01 0:03 ` Richard Stallman
0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2006-10-01 0:03 UTC (permalink / raw)
Cc: emacs-devel
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)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-01 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <871wptl7hq.fsf@escpc40.esc.rl.ac.uk>
2006-10-01 0:03 ` list-processes and process sentinels not run Richard Stallman
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).