Function: eshell-protect-handles

eshell-protect-handles is a byte-compiled function defined in esh-io.el.gz.

Signature

(eshell-protect-handles HANDLES)

Documentation

Protect the handles in HANDLES from a being closed.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defun eshell-protect-handles (handles)
  "Protect the handles in HANDLES from a being closed."
  (dotimes (idx eshell-number-of-handles)
    (when-let* ((handle (aref handles idx)))
      (incf (cdar handle))))
  handles)