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."
  (let ((idx 0))
    (while (< idx eshell-number-of-handles)
      (if (aref handles idx)
	  (setcdr (aref handles idx)
		  (1+ (cdr (aref handles idx)))))
      (setq idx (1+ idx))))
  handles)