...
Code Block | ||
---|---|---|
| ||
void func(void *foo) {
/* Execution of thread */
}
int main(void) {
int result;
pthread_t thread;
if ((result = pthread_create(&thread, NULL, func, 0)) != 0) {
/* Handle Error */
}
if ((result = pthread_cancel(thread)) != 0) {
/* Handle Error */
}
/* Continue executing until the signal kills the process */
return 0;
}
|
Risk Assessment
...