aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/diag.c1
-rw-r--r--src/meta1gram.y13
2 files changed, 13 insertions, 1 deletions
diff --git a/src/diag.c b/src/diag.c
index 65d9562..eba08b5 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -129,6 +129,7 @@ logmsg_vprintf (int prio, const char *fmt, va_list ap)
*p++ = 0;
if (!*p)
p = NULL;
+ grecs_txtacc_grow_string (log_acc, str);
grecs_txtacc_grow_char (log_acc, 0);
t = grecs_txtacc_finish (log_acc, 0);
logmsg (prio, "%s", t);
diff --git a/src/meta1gram.y b/src/meta1gram.y
index 44751f3..3e19a12 100644
--- a/src/meta1gram.y
+++ b/src/meta1gram.y
@@ -338,10 +338,21 @@ xlat_listen_socket (struct meta1_stmt *stmt, struct component *comp)
return 0;
}
+static int
+xlat_start_action (struct meta1_stmt *stmt, struct component *comp)
+{
+ if (strcmp (stmt->v.value->v.string, "wait") == 0)
+ {
+ meta1_line_begin ();
+ meta1_line_add ("exec", 4);
+ stmt->v.value->v.string = meta1_line_finish ();
+ }
+ return 0;
+}
static struct node_trans root_node_trans[] = {
{ "listen_socket", "socket", xlat_listen_socket },
- { "start_action", "mode" },
+ { "start_action", "mode", xlat_start_action },
{ "pass_fd_socket", "pass-fd-socket" },
{ "user", "user" },
{ "path", "program" },

Return to:

Send suggestions and report system problems to the System administrator.