[pacman-dev] [PATCH 1/3] repo-add: Avoid race condition in signal handlers