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 (aref handles idx)
      (setcdr (aref handles idx)
              (1+ (cdr (aref handles idx))))))
  handles)