For the problem of abnormal MySQL-Proxy sub-process exit, I have mentioned in the previous blog: sofar. blog.51cto. com3535721398820 related error information, as shown in: the 11 signal is S.
I have mentioned the problem of abnormal MySQL-Proxy sub-process exit in my previous blog post: Quit
At the beginning, locate the following two source code files:
Src/chassis-unix-daemon.c
Src/chassis-mainloop.c
The processing of the three signals SIGTERM, SIGINT, and SIGHUP is displayed, so the processing of the SIGSEGV signal is also added in a similar way (the signal is ignored ), the modification is roughly as follows:
Src/chassis-unix-daemon.c:
Signal (SIGSEGV, chassis_unix_signal_forward); ...... signal (SIGSEGV, SIG_DFL );
Src/chassis-mainloop.c:
Struct event ev_sigterm, ev_sigint, ev_sigsegv ;...... signal_set (& ev_sigsegv, SIGSEGV, sigsegv_handler, NULL); event_base_set (chas-> event_base, & ev_sigsegv); signal_add (& ev_sigsegv, NULL );...... signal_del (& ev_sigsegv );
# Make & make install
Start the compiled MySQL-Proxy program again. The following core file will be generated in a few minutes:
This article is from the "life ideal lies in perseverance" blog. Please keep this source
,