aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-01-09 10:22:39 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-09 10:22:39 +0200
commit7361c5a48968685f1ac6bb8561072b2dfe6a5a61 (patch)
treebd2d2a60d5470b3aa1ea827024df0661bf847ba7
parent346535b7d14be92dd2b853058039bca67bb380dd (diff)
downloadpies-7361c5a48968685f1ac6bb8561072b2dfe6a5a61.tar.gz
pies-7361c5a48968685f1ac6bb8561072b2dfe6a5a61.tar.bz2
Bugfixes
* src/meta1gram.y: Translate "wait" mode to "exec". * src/diag.c (logmsg_vprintf): Don't loose the last segment before \n.
-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
@@ -131,2 +131,3 @@ logmsg_vprintf (int prio, const char *fmt, va_list ap)
p = NULL;
+ grecs_txtacc_grow_string (log_acc, str);
grecs_txtacc_grow_char (log_acc, 0);
diff --git a/src/meta1gram.y b/src/meta1gram.y
index 44751f3..3e19a12 100644
--- a/src/meta1gram.y
+++ b/src/meta1gram.y
@@ -340,2 +340,13 @@ xlat_listen_socket (struct meta1_stmt *stmt, struct component *comp)
+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;
+}
@@ -343,3 +354,3 @@ 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" },

Return to:

Send suggestions and report system problems to the System administrator.