diff options
author | unknown <tomas@poseidon.(none)> | 2004-05-21 10:21:24 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.(none)> | 2004-05-21 10:21:24 +0000 |
commit | a98425545dd8bcaf98bd6265ad3ac1dda21f26e1 (patch) | |
tree | db5738cf2f95776c0f8d4e11c111c179f72db08a /ndb | |
parent | 419464281344c2a751ab3780c61d7611afd731a3 (diff) | |
parent | d4c67b60995f537f6e60276719e72fb2422b5853 (diff) | |
download | mariadb-git-a98425545dd8bcaf98bd6265ad3ac1dda21f26e1.tar.gz |
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.(none):/home/tomas/mysql-4.1-ndb
BitKeeper/etc/logging_ok:
auto-union
ndb/src/kernel/ndb-main/Main.cpp:
Auto merged
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/kernel/ndb-main/Main.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ndb/src/kernel/ndb-main/Main.cpp b/ndb/src/kernel/ndb-main/Main.cpp index 3cc1901c966..7fdb32e5893 100644 --- a/ndb/src/kernel/ndb-main/Main.cpp +++ b/ndb/src/kernel/ndb-main/Main.cpp @@ -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); } } |