Added parameters for commands and changed the execv call to execvp.

This commit is contained in:
Markus Makela
2015-05-05 22:36:47 +03:00
parent 565eeb8f9d
commit cad59abbd1
4 changed files with 135 additions and 21 deletions

View File

@ -20,7 +20,7 @@
#include <server.h>
#include <spinlock.h>
#include <mysql.h>
#include <mon_exec.h>
/**
* @file mysqlmon.h - The MySQL monitor functionality within the gateway
*
@ -81,8 +81,7 @@ typedef struct {
int write_timeout; /**< Timeout in seconds for each attempt to write to the server.
* There are retries and the total effective timeout value is two times the option value.
*/
char *master_down_script;
int master_down_script_called;
EXTERNCMD* master_down_script;
} MYSQL_MONITOR;
#define MONITOR_RUNNING 1