| 941 | } |
| 942 | |
| 943 | static int cbm_popen_git_wait(pid_t pid) { |
| 944 | int status = 0; |
| 945 | while (waitpid(pid, &status, 0) < 0) { |
| 946 | if (errno != EINTR) { |
| 947 | return -1; |
| 948 | } |
| 949 | } |
| 950 | return status; |
| 951 | } |
| 952 | |
| 953 | FILE *cbm_popen_git(const char *cmd) { |
| 954 | if (!cmd) { |
no outgoing calls
no test coverage detected