1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Changes from Novell for NetWare platform

include/my_pthread.h:
  Consolidated NetWare pthread_exit() changes.
mysys/mf_path.c:
  NetWare needs a semicolon path delimiter.
mysys/my_pthread.c:
  Consolidated NetWare pthread_exit() changes.
sql/mini_client.cc:
  Modified to match my_connect().
sql/mysqld.cc:
  Consolidated NetWare pthread_exit() changes.
sql/slave.cc:
  Consolidated NetWare pthread_exit() changes.
sql/sql_load.cc:
  Stat properites should not be checked here on NetWare.
This commit is contained in:
unknown
2003-04-24 20:48:54 -04:00
parent 1a01f0ff08
commit ae5e364c19
7 changed files with 36 additions and 11 deletions

View File

@@ -90,6 +90,29 @@ void *my_pthread_getspecific_imp(pthread_key_t key)
}
#endif
#ifdef __NETWARE__
/*
don't kill the LibC Reaper thread or the main thread
*/
#include <nks/thread.h>
void my_pthread_exit(void *status)
{
#undef pthread_exit
NXThreadId_t tid = NXThreadGetId();
NXContext_t ctx;
char name[PATH_MAX] = "";
NXThreadGetContext(tid, &ctx);
NXContextGetName(ctx, name, PATH_MAX);
// "MYSQLD.NLM's LibC Reaper" or "MYSQLD.NLM's main thread"
// with a debug build of LibC the reaper can have different names
if (!strindex(name, "\'s"))
{
pthread_exit(status);
}
}
#endif
/* Some functions for RTS threads, AIX, Siemens Unix and UnixWare 7
(and DEC OSF/1 3.2 too) */