mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
fix for macosx where SIGRTMIN is missing
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
parent
ee0732603e
commit
d4c67b6099
2 changed files with 13 additions and 3 deletions
|
@ -161,6 +161,7 @@ tim@white.box
|
|||
tim@work.mysql.com
|
||||
tom@basil-firewall.home.com
|
||||
tomas@mc05.(none)
|
||||
tomas@poseidon.(none)
|
||||
tonu@hundin.mysql.fi
|
||||
tonu@volk.internalnet
|
||||
tonu@x153.internalnet
|
||||
|
|
|
@ -228,16 +228,25 @@ systemInfo(const Configuration & config, const LogLevel & logLevel){
|
|||
void
|
||||
catchsigs(bool ignore){
|
||||
#if ! defined NDB_SOFTOSE && !defined NDB_OSE
|
||||
|
||||
#if defined SIGRTMIN
|
||||
#define MAX_SIG_CATCH SIGRTMIN
|
||||
#elif defined NSIG
|
||||
#define MAX_SIG_CATCH NSIG
|
||||
#else
|
||||
#error "neither SIGRTMIN or NSIG is defined on this platform, please report bug at bugs.mysql.com"
|
||||
#endif
|
||||
|
||||
// Makes the main process catch process signals, eg installs a
|
||||
// handler named "handler". "handler" will then be called is instead
|
||||
// of the defualt process signal handler)
|
||||
if(ignore){
|
||||
for(int i = 1; i<SIGRTMIN; i++){
|
||||
for(int i = 1; i < MAX_SIG_CATCH; i++){
|
||||
if(i != SIGCHLD)
|
||||
signal(i, SIG_IGN);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for(int i = 1; i<SIGRTMIN; i++){
|
||||
for(int i = 1; i < MAX_SIG_CATCH; i++){
|
||||
signal(i, handler);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue