sub handler { yield, return unless threads->tid == 0; ## Handle the signal }