cleanup all memory and end program nicely. If SIGNALS_DONT_BREAK_READ is defined, this function is called by the main thread. To get MySQL to shut down nicely in this case (Mac OS X) we have to call exit() instead if pthread_exit(). @note This function never returns. */
| 1144 | This function never returns. |
| 1145 | */ |
| 1146 | void unireg_end(void) |
| 1147 | { |
| 1148 | clean_up(1); |
| 1149 | my_thread_end(); |
| 1150 | #if defined(SIGNALS_DONT_BREAK_READ) |
| 1151 | exit(0); |
| 1152 | #else |
| 1153 | pthread_exit(0); // Exit is in main thread |
| 1154 | #endif |
| 1155 | } |
| 1156 | |
| 1157 | |
| 1158 | extern "C" void unireg_abort(int exit_code) |
nothing calls this directly
no test coverage detected