From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: bug in process handling? Date: Tue, 27 Apr 2010 08:00:46 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272348136 26506 80.91.229.12 (27 Apr 2010 06:02:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 06:02:16 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 27 08:02:15 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6ds6-0007f4-V6 for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 08:02:15 +0200 Original-Received: from localhost ([127.0.0.1]:57958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6ds6-0007ls-1m for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 02:02:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6dqu-0007ZD-En for emacs-devel@gnu.org; Tue, 27 Apr 2010 02:01:00 -0400 Original-Received: from [140.186.70.92] (port=53417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6dqs-0007Yn-0F for emacs-devel@gnu.org; Tue, 27 Apr 2010 02:00:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6dqq-0007uS-EX for emacs-devel@gnu.org; Tue, 27 Apr 2010 02:00:57 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:44328 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6dqq-0007so-3B for emacs-devel@gnu.org; Tue, 27 Apr 2010 02:00:56 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id o3R60kSF005506 for ; Tue, 27 Apr 2010 08:00:47 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124236 Archived-At: 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