Make the thread killable at any time, so that kill threads functions * can work reliably (default cancelability type is PTHREAD_CANCEL_DEFERRED). * Needed for pthread_cancel used by the fast memory test used by the crash report. */
| 3140 | * can work reliably (default cancelability type is PTHREAD_CANCEL_DEFERRED). |
| 3141 | * Needed for pthread_cancel used by the fast memory test used by the crash report. */ |
| 3142 | void makeThreadKillable(void) { |
| 3143 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); |
| 3144 | pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); |
| 3145 | } |
| 3146 | |
| 3147 | void initServer(void) { |
| 3148 | int j; |
no outgoing calls
no test coverage detected