| package exec |
| |
| const ( |
| version1 = "1.0.0" |
| readyStatus = "ready::" |
| failedStatus = "failed::" |
| initStatus = "init" |
| |
| // eofChar is written onto the status pipe to signal end-of-file. It |
| // should be the last byte written onto the pipe, before closing it. |
| // This signals to the reader that no more input is coming. This is |
| // needed since we cannot use the closing of the write end of the pipe |
| // to send io.EOF to the reader: since there are two write ends (one in |
| // the parent and one in the child), closing any one of the two is not |
| // going to send io.EOF to the reader. |
| // Since the data coming from the child should be valid utf-8, we pick |
| // one of the invalid utf-8 bytes for this. |
| eofChar = 0xFF |
| ) |