I know this, but this can be very important for codes running on simulation 
servers. Often signals are used to tell a process to save state and shut 
down as it is going to be moved to another system or the server needs 
maintenance. I have to handle SIGINT to do exactly this on our simulation 
systems (currently I run python and C++ codes which can do this). For this 
reason it would be useful to easily register julia functions as signal 
handlers so that we can achieve something like this.

Of course I could ccall, but I'd rather have an official way to do this.

On Thursday, January 14, 2016 at 1:55:04 PM UTC+1, Yichao Yu wrote:
>
> On Thu, Jan 14, 2016 at 5:37 AM, John Travers <[email protected] 
> <javascript:>> wrote: 
> > No, I'm looking for operating system signal handling, like SIGINT etc. 
> > Something like the python `signal` module. 
>
> Note that the signal handler is global and julia relies on a number of 
> them to function correctly. 
>
> > 
> > 
> > On Thursday, January 14, 2016 at 11:25:13 AM UTC+1, Eric Forgy wrote: 
> >> 
> >> Is this what you are looking for? 
> >> 
> >> http://julialang.org/Reactive.jl/ 
> >> 
> >> 
> >> On Thursday, January 14, 2016 at 6:16:20 PM UTC+8, John Travers wrote: 
> >>> 
> >>> Is there a way to handle signals in julia (i.e. to register handlers 
> >>> etc.)? 
> >>> 
> > 
>

Reply via email to