system/SignalFD: throw exception on error

This commit is contained in:
Max Kellermann
2018-08-06 11:53:45 +02:00
parent 5b09504a71
commit dd18fe34a7
3 changed files with 6 additions and 3 deletions

View File

@@ -35,9 +35,10 @@ public:
/**
* Create the signalfd or update its mask.
*
* All errors are fatal.
* Throws on error.
*/
void Create(const sigset_t &mask);
void Close() {
fd.Close();
}