* bug in process handling?
@ 2010-04-27 6:00 joakim
0 siblings, 0 replies; only message in thread
From: joakim @ 2010-04-27 6:00 UTC (permalink / raw)
To: Emacs development discussions
It appears that if a process sentinel doesnt finish properly for some
reason, the process is left in process-list, even though it is killed.
For instance I get a process list like this:
Proc Status Buffer Tty Command
---- ------ ------ --- -------
scanadf<11> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
erc-localhost-6668 open localhost:6668 (network stream connection to localhost)
scanadf<8> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<9> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
imap open *nnimap* naru (network stream connection to localhost)
scanadf<7> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<6> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<5> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<2> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<4> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<3> run (Killed) scanadf --device-name test --source Automatic Document Feeder --mode
scanadf<1> exit (Killed) /dev/pts/7 scanadf --device-name test --source Automatic Document Feeder --mode Color --test-picture Color pattern --resolution 150 --output-file 0100-%04d.scan --start-count 1 -l 3 -t 0 -x 210 -y 297
scanadf exit (Killed) /dev/pts/6 scanadf --device-name test --source Automatic Document Feeder --mode Color --test-picture Color pattern --resolution 150 --output-file 0100-%04d.scan --start-count 1 -l 3 -t 0 -x 210 -y 297
None of the scanadf processes show up in a "ps auxwww". They dont exist.
I can clean it up like this:
(defun emsane-killall-scanadf ()
"when the process sentinel is buggy, emacs doesnt delete a finished process properly, this is for cleaning"
(mapcar
(lambda (x)
(if (equal "scanadf" (substring (process-name x) 0 -3 ))
(progn
(delete-process (process-name x))
)))
(process-list)))
Is this a bug or expected behaviour?
--
Joakim Verona
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-27 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27 6:00 bug in process handling? joakim
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).