Handled signals using pthread_cancel