1.2.0 permalink Arrow_down_16x16

get-pid

swank.util.sys

  • (get-pid)
Returns the PID of the JVM. This is largely a hack and may or may
not be accurate depending on the JVM in which clojure is running
off of.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/util/sys.clj:3 top

(defn get-pid
  "Returns the PID of the JVM. This is largely a hack and may or may
   not be accurate depending on the JVM in which clojure is running
   off of."
  ([]
     (or (first (.. java.lang.management.ManagementFactory (getRuntimeMXBean) (getName) (split "@")))
         (System/getProperty "pid")))
  {:tag String})
Vars in swank.util.sys/get-pid: .. defn first or
Used in 0 other vars

Comments top

No comments for get-pid. Log in to add a comment.