I'm able to catch the InterruptException with the code below when running in the REPL, but it doesn't seem to get thrown when running the code in a script.
while true try sleep(1) println("running...") catch err println("error: $err") end end On Monday, 16 June 2014 18:30:36 UTC-3, Ivar Nesje wrote: > > SIGINT gets converted to a InterruptException, that can be caught in a > catch statement. If you happened to be in a ccall, you might cause your > program to be in a corrupt state and leak resources such as memory. > > I'm not sure how you can interact with other signals. >