From 6f915b4104313b62061a0aba085e92d2121bc17d Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 26 Jan 2023 15:54:29 +0100 Subject: seitan: add block action The block action returns a given error Signed-off-by: Alice Frosi --- actions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'actions.c') diff --git a/actions.c b/actions.c index edd7a8a..b1d3791 100644 --- a/actions.c +++ b/actions.c @@ -185,6 +185,14 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid, return -1; } break; + case A_BLOCK: + resp.id = id; + resp.val = 0; + resp.flags = 0; + resp.error = actions[i].block.error; + if (send_target(&resp, notifyfd) == -1) + return -1; + break; default: fprintf(stderr, "unknow action %d \n", actions[i].type); } -- cgit v1.2.3