* Close a pipe opened via popen. */
| 144 | * Close a pipe opened via popen. |
| 145 | */ |
| 146 | static void |
| 147 | close_pipe(FILE *pipefd) |
| 148 | { |
| 149 | if (pipefd == NULL) |
| 150 | return; |
| 151 | #if OS2 |
| 152 | /* |
| 153 | * The pclose function of OS/2 emx sometimes fails. |
| 154 | * Send SIGINT to the piped process before closing it. |
| 155 | */ |
| 156 | kill(pipefd->_pid, SIGINT); |
| 157 | #endif |
| 158 | pclose(pipefd); |
| 159 | } |
| 160 | |
| 161 | /* |
| 162 | * Close the current input file. |
no test coverage detected
searching dependent graphs…