Function: cider--lsof-fn-field

cider--lsof-fn-field is a byte-compiled function defined in cider-endpoint.el.

Signature

(cider--lsof-fn-field LSOF-ARGS)

Documentation

Run lsof with LSOF-ARGS and return the first "n" (name) field.

Returns nil if lsof produced no name field.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-endpoint.el
(defun cider--lsof-fn-field (lsof-args)
  "Run lsof with LSOF-ARGS and return the first \"n\" (name) field.
Returns nil if lsof produced no name field."
  (thread-last (apply #'cider--process-file-to-string "lsof" lsof-args)
               (split-string)
               (seq-find (lambda (s) (string-prefix-p "n" s)))
               (funcall (lambda (s) (and s (substring s 1))))))