emacs-devel
[Top][All Lists]
Advanced

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

bug in process handling?


From: joakim
Subject: bug in process handling?
Date: Tue, 27 Apr 2010 08:00:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

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




reply via email to

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