util: install signal handlers only once
Merge pull request #412 from andreas-schwab/master

util: install signal handlers only once