Function: ghostel--kill-native-process-hook
ghostel--kill-native-process-hook is a natively compiled function
defined in ghostel.el.
Signature
(ghostel--kill-native-process-hook)
Documentation
Detach the native event pipe and request child termination.
Run from kill-buffer-hook in native PTY buffers.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--kill-native-process-hook ()
"Detach the native event pipe and request child termination.
Run from `kill-buffer-hook' in native PTY buffers."
;; Do not let `kill-buffer' delete the pipe early. Keep the
;; pipe alive until the native reaper reports that the child
;; exited, matching Emacs process lifetime semantics.
(when ghostel--process
(set-process-buffer ghostel--process nil))
;; A major-mode change after process exit wipes `ghostel--term'
;; while the permanent-local `kill-buffer-hook' keeps this entry;
;; nil means there is no native child to reap.
(when ghostel--term
(ghostel--kill-native-process ghostel--term)))