# CTRL-C crashing REPL in hot loop

**URL:** <https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915>\
**Category:** General Usage\
**Created:** [October 18, 2022, 2:01pm UTC](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915 "2022-10-18T14:01:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [October 18, 2022, 2:01pm UTC](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915/1 "2022-10-18T14:01:04Z")

</div>

I experienced this issue on Julia 1.8.2 (Windows), with a fairly complex Dash app (+ DataFrames, CSV and other packages in an environment).  
It even happend with a hot loop:

```julia
while true
end
# CTRL-C

```

This kills the workflow completely because everytime I change some code and I need to run the app again the REPL crashes and I have to wait for precompilation every time. Julia 1.7.1 did not have this issue. Any workarounds?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [October 18, 2022, 3:15pm UTC](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915/2 "2022-10-18T15:15:23Z")

</div>

Try calling `yield()` every once in a while to give the scheduler a chance to catch the ctrl-c exception.

---

<div class="post-metadata">

**Author:** ![blackeneth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blackeneth/32/10353_2.png) [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Post date:** [October 19, 2022, 6:18am UTC](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915/3 "2022-10-19T06:18:01Z")

</div>

Look at the sigint functions in the docs [here](https://docs.julialang.org/en/v1/base/c/) (scroll down).

Haven’t tried it, but looks promising.
