Article View: gnu.epoch.misc
Article #1162Process not active ???
From: Huub Bakker
Date: Mon, 19 Oct 1992 09:15
Date: Mon, 19 Oct 1992 09:15
44 lines
1667 bytes
1667 bytes
Hello World, I have two asynchronous processes running under Epoch. I want these processes terminated by a SIGINT signal when Epoch quits. Normally Epoch does this job with a SIGHUP signal, but that one can't be used here. So I wrote the following code. (defun stop_send_to () "This function is called from the kill-emacs-hook" (setq send_to_comm_running nil) (interrupt-process send_to_comm_proc) (delete-process send_to_comm_proc) ) (defun stop_server () "This function is called from the kill-emacs-hook" (setq epoch_server_running nil) (interrupt-process epoch_server_proc) (delete-process epoch_server_proc) ) (defun stop_processes () (stop_server) (stop_send_to) ) (setq kill-emacs-hook 'stop_processes) When typing C-x C-c the first call to (interrupt-process ...) gives an error message "Process epoch_server_proc not active." and stop_server does not return. What's wrong? Thanks for all help, Greetings, Huub. -- CWI, P.O. Box 4079 Huub Bakker (huub@cwi.nl) 1009 AB Amsterdam The Netherlands Tel. 31 20 5924080
Technical Details
Message-ID:
<7708@charon.cwi.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!huubShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,7a859d7a0732e6fc,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-10-18 23:24:06 PST Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!huub From: huub@cwi.nl (Huub Bakker) Newsgroups: gnu.epoch.misc Subject: Process not active ??? Keywords: asynchronous process, interrupt, kill hook. Message-ID: <7708@charon.cwi.nl> Date: 19 Oct 92 09:15:49 GMT Sender: news@cwi.nl Reply-To: Huub.Bakker@cwi.nl Organization: CWI, Centre for Mathematics & Computer Science Lines: 44