# Cannot catch Ctrl-C gracefully in this script

**URL:** https://discourse.julialang.org/t/cannot-catch-ctrl-c-gracefully-in-this-script/79757
**Category:** General Usage
**Tags:** question, interruptexception
**Created:** [April 20, 2022, 9:15pm UTC](https://discourse.julialang.org/t/cannot-catch-ctrl-c-gracefully-in-this-script/79757 "2022-04-20T21:15:21Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![chunjiw](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@chunjiw](https://discourse.julialang.org/u/chunjiw)
#### Post date: [April 21, 2022, 6:01pm UTC](https://discourse.julialang.org/t/cannot-catch-ctrl-c-gracefully-in-this-script/79757/4 "2022-04-21T18:01:54Z")

</div>

> Despite you naming it try\_segfault, I don’t think this is actually a segment[ation] fault

You are right, I edited the post

> What was the point of `@async` line?

Good question, I don’t know… I got the code from [here](https://github.com/JuliaLang/julia/issues/19467). I will do more tests both with and without it.

I will open an issue about this. Thank you for your suggestions!

---

_[View the full topic](https://discourse.julialang.org/t/cannot-catch-ctrl-c-gracefully-in-this-script/79757)._
