1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

various fixes

server-tools/instance-manager/buffer.cc:
  use my_realloc instead of realloc
server-tools/instance-manager/buffer.h:
  use my_malloc instead of malloc
server-tools/instance-manager/commands.cc:
  No need to send a buffer if there were some error while writing to it
server-tools/instance-manager/instance_options.cc:
  cleanup
server-tools/instance-manager/manager.cc:
  check sigwait return value
server-tools/instance-manager/parse_output.cc:
  fixed a bug, found with valgrind
This commit is contained in:
unknown
2005-02-13 15:13:33 +03:00
parent dce2554f91
commit 5bd607785a
6 changed files with 38 additions and 21 deletions

View File

@@ -171,7 +171,14 @@ void manager(const Options &options)
while (!shutdown_complete)
{
sigwait(&mask, &signo);
int status= 0;
if (status= my_sigwait(&mask, &signo))
{
log_error("sigwait() failed");
goto err;
}
switch (signo)
{
case THR_SERVER_ALARM: