aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorNoah Friedman2004-05-28 21:58:31 +0000
committerNoah Friedman2004-05-28 21:58:31 +0000
commit33594a8d34d2030130c5f9f5b21085b7e05c1d3d (patch)
treeed7f23873a57bc051a714bcfec3e96944797c023 /src/process.c
parent6b9654dc44799005726cab2d72b926cd70c04c72 (diff)
downloademacs-33594a8d34d2030130c5f9f5b21085b7e05c1d3d.tar.gz
emacs-33594a8d34d2030130c5f9f5b21085b7e05c1d3d.zip
process.c (Fdelete_process): Do not call remove_process.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 82f61ffdfb2..a19880fc4f6 100644
--- a/src/process.c
+++ b/src/process.c
@@ -774,7 +774,18 @@ nil, indicating the current buffer's process. */)
774 XSETINT (XPROCESS (process)->tick, ++process_tick); 774 XSETINT (XPROCESS (process)->tick, ++process_tick);
775 status_notify (); 775 status_notify ();
776 } 776 }
777 remove_process (process); 777 /* Do not call remove_process here; either status_notify has already done
778 it, or will do so the next time emacs polls for input. Thus network
779 processes are not immediately removed, and their sentinel will be
780 called.
781
782 Since Fdelete_process is called by kill_buffer_processes, this also
783 means that a network process sentinel will run after the buffer is
784 dead, which would not be the case if status_notify() were called
785 unconditionally here. This way process sentinels observe consistent
786 behavior with regard to buffer-live-p.
787 */
788 /* remove_process (process); */
778 return Qnil; 789 return Qnil;
779} 790}
780 791