unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Emacs development discussions <emacs-devel@gnu.org>
Subject: bug in process handling?
Date: Tue, 27 Apr 2010 08:00:46 +0200	[thread overview]
Message-ID: <m3zl0pph81.fsf@verona.se> (raw)

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	other threads:[~2010-04-27  6:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m3zl0pph81.fsf@verona.se \
    --to=joakim@verona.se \
    --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).