On Mon, Sep 12, 2016 at 10:03 AM, K leo <cnbiz...@gmail.com> wrote: > I put the following lines in my C++ code. These are only executed once > near the beginning of the code > and run fine. There are no other julia related statements in the code. > But with the presence of these statements in the code, whenever the code > does some communications requests on the Internet > later on, the code gets a user defined signal 1 and terminates. If I > comment out these lines, then the code > does not get the signal and runs fine. Anyone can shed some light on what > might be going on? >
This registers signal handler for SIGUSR1 (which is also used for profiling) and the origin of the signal is probably from elsewhere (e.g. the library you are using). > > jl_init(NULL); > > jl_load(filename); > mod = (jl_value_t*)jl_eval_string(moduleName); > JuliaFunc = jl_get_function((jl_module_t*)mod,"TestFunc"); > > >