summaryrefslogtreecommitdiff
path: root/mysys/my_pthread.c
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-10-11 09:12:12 -0700
committerjimw@mysql.com <>2005-10-11 09:12:12 -0700
commitc8a6c2c6143dd8c92704920d455cc57050ce71ad (patch)
tree4607d81d45be27a727b93a40191ed4853e10f8ef /mysys/my_pthread.c
parent52181cc810ecf3d2103d7782055c14b7157aabcb (diff)
downloadmariadb-git-c8a6c2c6143dd8c92704920d455cc57050ce71ad.tar.gz
Fix wait_timeout (and kill) handling on Mac OS X by cleaning up how
signal handlers are set up, the blocking flags for sockets are set, and which thread-related functions are used. (Bug #8731)
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r--mysys/my_pthread.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c
index 37517fb8327..315e966bf43 100644
--- a/mysys/my_pthread.c
+++ b/mysys/my_pthread.c
@@ -404,23 +404,6 @@ int sigwait(sigset_t *setp, int *sigp)
#endif /* DONT_USE_SIGSUSPEND */
#endif /* HAVE_SIGWAIT */
-/*****************************************************************************
-** Implement pthread_signal for systems that can't use signal() with threads
-** Currently this is only used with BSDI 3.0
-*****************************************************************************/
-
-#ifdef USE_PTHREAD_SIGNAL
-
-int pthread_signal(int sig, void (*func)())
-{
- struct sigaction sact;
- sact.sa_flags= 0;
- sact.sa_handler= func;
- sigemptyset(&sact.sa_mask);
- sigaction(sig, &sact, (struct sigaction*) 0);
- return 0;
-}
-#endif
/****************************************************************************
The following functions fixes that all pthread functions should work