rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.51k stars 341 forks source link

rz_th_sem_wait: Retry sem_wait() on EINTR #4551

Closed kazarmy closed 2 weeks ago

kazarmy commented 2 weeks ago

Your checklist for this pull request

Detailed description

This pr makes rz_th_sem_wait() retry its sem_wait() on EINTR.

Test plan

The change makes sense. All builds are green.

Closing issues

...

XVilka commented 2 weeks ago

@kazarmy I think it was made on purpose becase it wouldn't work on all systems, but I forgot the details right now.

kazarmy commented 2 weeks ago

@kazarmy I think it was made on purpose becase it wouldn't work on all systems, but I forgot the details right now.

Ok, the systems that it applies to can be bounded.