diff options
author | anozdrin/alik@alik.opbmk <> | 2007-02-20 21:28:30 +0300 |
---|---|---|
committer | anozdrin/alik@alik.opbmk <> | 2007-02-20 21:28:30 +0300 |
commit | 61b624eb760bd3e3c8baf41c992000964b0840d5 (patch) | |
tree | 3b85b381282acd24583dc6851e2907783f8ae134 /server-tools/instance-manager/angel.cc | |
parent | a91354c3be7cd5029a1442e8f413599dea84adbf (diff) | |
download | mariadb-git-61b624eb760bd3e3c8baf41c992000964b0840d5.tar.gz |
Polishing:
1. use MySQL headers instead of system ones;
2. move logical part of code into a separate function.
Diffstat (limited to 'server-tools/instance-manager/angel.cc')
-rw-r--r-- | server-tools/instance-manager/angel.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/server-tools/instance-manager/angel.cc b/server-tools/instance-manager/angel.cc index 37bbeaa8ce8..09d675b291d 100644 --- a/server-tools/instance-manager/angel.cc +++ b/server-tools/instance-manager/angel.cc @@ -17,19 +17,16 @@ #include "angel.h" -#include <signal.h> -#include <string.h> - -#include <sys/stat.h> -#include <sys/types.h> #include <sys/wait.h> - /* - Include my_global.h right after system includes so that we can change - system defines if needed. + sys/wait.h is needed for waitpid(). Unfortunately, there is no MySQL + include file, that can serve for this. Include it before MySQL system + headers so that we can change system defines if needed. */ #include "my_global.h" +#include "my_alarm.h" +#include "my_sys.h" /* Include other IM files. */ |