<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged exec</title>
<link>https://ask.clojure.org/index.php/tag/exec</link>
<description></description>
<item>
<title>clojure -X hangs with agent use</title>
<link>https://ask.clojure.org/index.php/14708/clojure-x-hangs-with-agent-use</link>
<description>&lt;p&gt;Given this repro:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(ns repro)

(defn exec-fn [_]
  (let [a (agent nil)]
    (prn (-&amp;gt; (java.lang.ProcessHandle/current) (.pid)))
    (send a (fn [_] 3))))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the &lt;code&gt;clojure -X repro/exec-fn&lt;/code&gt; invocation is hanging.&lt;/p&gt;
&lt;p&gt;This seems to be unintentional, given that clojure -X doesn't wait for futures to finish either?&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14708/clojure-x-hangs-with-agent-use</guid>
<pubDate>Wed, 10 Sep 2025 21:02:32 +0000</pubDate>
</item>
</channel>
</rss>