1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix to get core files on Solaris

BUILD/compile-solaris-sparc-purify:
  Added -g
This commit is contained in:
unknown
2001-08-22 12:22:46 +03:00
parent d85006f254
commit 2e6a193c0f
4 changed files with 15 additions and 12 deletions

View File

@ -205,11 +205,17 @@ resolve it\n");
/* Produce a core for the thread */
#ifdef HAVE_WRITE_CORE
#ifdef HAVE_LINUXTHREADS
void write_core(int sig)
{
signal(sig, SIG_DFL);
if (fork() != 0) exit(1); // Abort main program
// Core will be written at exit
}
#endif /* HAVE_WRITE_CORE */
#else
void write_core(int sig)
{
signal(sig, SIG_DFL);
pthread_kill(pthread_self(), sig);
}
#endif