cleans write pipe end * for processes done writing the status code * MUST be called to ensure that the original * parent process does not keep waiting forever */
| 191 | * MUST be called to ensure that the original |
| 192 | * parent process does not keep waiting forever */ |
| 193 | void clean_write_pipeend(void) |
| 194 | { |
| 195 | if (status_pipe[1] != -1) { |
| 196 | close(status_pipe[1]); |
| 197 | status_pipe[1] = -1; |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | /*! |
| 202 | * \brief daemon init |
no outgoing calls
no test coverage detected