| 2124 | cp->ProcessResults[idx].ExitException = kwsysProcess_Exception_##type; \ |
| 2125 | strcpy(cp->ProcessResults[idx].ExitExceptionString, str) |
| 2126 | static void kwsysProcessSetExitExceptionByIndex(kwsysProcess* cp, int sig, |
| 2127 | int idx) |
| 2128 | { |
| 2129 | switch (sig) { |
| 2130 | #ifdef SIGSEGV |
| 2131 | case SIGSEGV: |
| 2132 | KWSYSPE_CASE(Fault, "Segmentation fault"); |
| 2133 | break; |
| 2134 | #endif |
| 2135 | #ifdef SIGBUS |
| 2136 | # if !defined(SIGSEGV) || SIGBUS != SIGSEGV |
| 2137 | case SIGBUS: |
| 2138 | KWSYSPE_CASE(Fault, "Bus error"); |
| 2139 | break; |
| 2140 | # endif |
| 2141 | #endif |
| 2142 | #ifdef SIGFPE |
| 2143 | case SIGFPE: |
| 2144 | KWSYSPE_CASE(Numerical, "Floating-point exception"); |
| 2145 | break; |
| 2146 | #endif |
| 2147 | #ifdef SIGILL |
| 2148 | case SIGILL: |
| 2149 | KWSYSPE_CASE(Illegal, "Illegal instruction"); |
| 2150 | break; |
| 2151 | #endif |
| 2152 | #ifdef SIGINT |
| 2153 | case SIGINT: |
| 2154 | KWSYSPE_CASE(Interrupt, "User interrupt"); |
| 2155 | break; |
| 2156 | #endif |
| 2157 | #ifdef SIGABRT |
| 2158 | case SIGABRT: |
| 2159 | KWSYSPE_CASE(Other, "Subprocess aborted"); |
| 2160 | break; |
| 2161 | #endif |
| 2162 | #ifdef SIGKILL |
| 2163 | case SIGKILL: |
| 2164 | KWSYSPE_CASE(Other, "Subprocess killed"); |
| 2165 | break; |
| 2166 | #endif |
| 2167 | #ifdef SIGTERM |
| 2168 | case SIGTERM: |
| 2169 | KWSYSPE_CASE(Other, "Subprocess terminated"); |
| 2170 | break; |
| 2171 | #endif |
| 2172 | #ifdef SIGHUP |
| 2173 | case SIGHUP: |
| 2174 | KWSYSPE_CASE(Other, "SIGHUP"); |
| 2175 | break; |
| 2176 | #endif |
| 2177 | #ifdef SIGQUIT |
| 2178 | case SIGQUIT: |
| 2179 | KWSYSPE_CASE(Other, "SIGQUIT"); |
| 2180 | break; |
| 2181 | #endif |
| 2182 | #ifdef SIGTRAP |
| 2183 | case SIGTRAP: |
no test coverage detected
searching dependent graphs…