| 1936 | } |
| 1937 | |
| 1938 | void kwsysProcessCleanErrorMessage(kwsysProcess* cp) |
| 1939 | { |
| 1940 | /* Remove trailing period and newline, if any. */ |
| 1941 | size_t length = strlen(cp->ErrorMessage); |
| 1942 | if (cp->ErrorMessage[length - 1] == '\n') { |
| 1943 | cp->ErrorMessage[length - 1] = 0; |
| 1944 | --length; |
| 1945 | if (length > 0 && cp->ErrorMessage[length - 1] == '\r') { |
| 1946 | cp->ErrorMessage[length - 1] = 0; |
| 1947 | --length; |
| 1948 | } |
| 1949 | } |
| 1950 | if (length > 0 && cp->ErrorMessage[length - 1] == '.') { |
| 1951 | cp->ErrorMessage[length - 1] = 0; |
| 1952 | } |
| 1953 | } |
| 1954 | |
| 1955 | /* Get the time at which either the process or user timeout will |
| 1956 | expire. Returns 1 if the user timeout is first, and 0 otherwise. */ |
no test coverage detected
searching dependent graphs…