Add confirm to launch

This commit is contained in:
Sargun Dhillon 2017-06-27 23:28:10 -07:00
parent 6924b55bb5
commit c8990384b3
1 changed files with 6 additions and 0 deletions

View File

@ -611,6 +611,12 @@ void maybe_unix_cb() {
goto error;
}
PRINT_INFO("Waiting to receive message from titus-executor before launching\n");
if (recv(sockfd, data, 1, 0) == -1) {
PRINT_FATAL("Unable to recv start message from socket: '%s'", strerror(errno));
}
PRINT_INFO("Clear to start\n");
return;
error: