Commit 4218f56f authored by Max Kellermann's avatar Max Kellermann

system/SignalFD: add "noexcept"

parent dd18fe34
...@@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask) ...@@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask)
} }
int int
SignalFD::Read() SignalFD::Read() noexcept
{ {
assert(fd.IsDefined()); assert(fd.IsDefined());
......
...@@ -39,11 +39,11 @@ public: ...@@ -39,11 +39,11 @@ public:
*/ */
void Create(const sigset_t &mask); void Create(const sigset_t &mask);
void Close() { void Close() noexcept {
fd.Close(); fd.Close();
} }
int Get() const { int Get() const noexcept {
return fd.Get(); return fd.Get();
} }
...@@ -52,7 +52,7 @@ public: ...@@ -52,7 +52,7 @@ public:
* signal number on success or -1 if there are no more * signal number on success or -1 if there are no more
* signals. * signals.
*/ */
int Read(); int Read() noexcept;
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment