Skip to content

Commit

Permalink
Ack in case of DESTROYPOD command
Browse files Browse the repository at this point in the history
In case hyperstart receives a DESTROYPOD command on the CTL
channel, it does not send anything back to the channel and
return 0.
Because DESTROYPOD is a standard command, there is no reason
not to send an ACK after the DESTROYPOD is done.

Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf committed Nov 1, 2016
1 parent f4d4366 commit cf91932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ static int hyper_channel_handle(struct hyper_event *de, uint32_t len)
pod->req_destroy = 1;
fprintf(stdout, "get DESTROYPOD message\n");
hyper_destroy_pod(pod, 0);
return 0;
break;
case EXECCMD:
ret = hyper_exec_cmd((char *)buf->data + 8, len - 8);
break;
Expand Down

0 comments on commit cf91932

Please sign in to comment.