diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-11-24 11:09:01 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-11-24 11:09:01 +1030 |
commit | 3845c6e5b846ad0e45572d8bd9692841f01efc33 (patch) | |
tree | 096f51e8ac48dd96de16678fa11ada900a4156eb /ctdb/server/eventscript.c | |
parent | ab675516cc568473bda357488e6b0b85f33698a1 (diff) | |
download | samba-3845c6e5b846ad0e45572d8bd9692841f01efc33.tar.gz samba-3845c6e5b846ad0e45572d8bd9692841f01efc33.tar.xz samba-3845c6e5b846ad0e45572d8bd9692841f01efc33.zip |
eventscript: cleanup ctdb_event_script_v
ctdb_event_script_v doesn't take varargs. ctdb_run_event_script is
a better name, and fix comment.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 466beafadb37011fe273de8810ab0012e92a1fd8)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 854acd655e..2df941d2df 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -443,11 +443,11 @@ static struct ctdb_script_list *ctdb_get_script_list(struct ctdb_context *ctdb, /* - run the event script - varargs version + Actually run the event script this function is called and run in the context of a forked child which allows it to do blocking calls such as system() */ -static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *options) +static int ctdb_run_event_script(struct ctdb_context *ctdb, const char *options) { char *cmdstr; int ret; @@ -813,7 +813,7 @@ static int ctdb_event_script_callback_v(struct ctdb_context *ctdb, close(state->fd[0]); set_close_on_exec(state->fd[1]); - rt = ctdb_event_script_v(ctdb, state->options); + rt = ctdb_run_event_script(ctdb, state->options); /* We must be able to write PIPEBUF bytes at least; if this somehow fails, the read above will be short. */ write(state->fd[1], &rt, sizeof(rt)); |