Close the given file descriptor if it is open. Reset its value to -1. */
| 1652 | |
| 1653 | /* Close the given file descriptor if it is open. Reset its value to -1. */ |
| 1654 | static void kwsysProcessCleanupDescriptor(int* pfd) |
| 1655 | { |
| 1656 | if (pfd && *pfd > 2) { |
| 1657 | /* Keep trying to close until it is not interrupted by a |
| 1658 | * signal. */ |
| 1659 | while ((close(*pfd) < 0) && (errno == EINTR)) { |
| 1660 | } |
| 1661 | *pfd = -1; |
| 1662 | } |
| 1663 | } |
| 1664 | |
| 1665 | static void kwsysProcessClosePipes(kwsysProcess* cp) |
| 1666 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…