* Read one command message from the leader, blocking if necessary * until one is available, and return it as a malloc'd string. * On EOF, return NULL. * * This function is executed in worker processes. */
| 1518 | * This function is executed in worker processes. |
| 1519 | */ |
| 1520 | static char * |
| 1521 | getMessageFromLeader(int pipefd[2]) |
| 1522 | { |
| 1523 | return readMessageFromPipe(pipefd[PIPE_READ]); |
| 1524 | } |
| 1525 | |
| 1526 | /* |
| 1527 | * Send a status message to the leader. |
no test coverage detected