Commit f677f42b authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: remove bogus assertions

parent a5760670
...@@ -60,8 +60,6 @@ ...@@ -60,8 +60,6 @@
bool bool
FileDescriptor::Open(const char *pathname, int flags) FileDescriptor::Open(const char *pathname, int flags)
{ {
assert(!IsDefined());
fd = ::open(pathname, flags); fd = ::open(pathname, flags);
return IsDefined(); return IsDefined();
} }
...@@ -125,8 +123,6 @@ FileDescriptor::SetBlocking() ...@@ -125,8 +123,6 @@ FileDescriptor::SetBlocking()
bool bool
FileDescriptor::CreateEventFD(unsigned initval) FileDescriptor::CreateEventFD(unsigned initval)
{ {
assert(!IsDefined());
fd = ::eventfd(initval, EFD_NONBLOCK|EFD_CLOEXEC); fd = ::eventfd(initval, EFD_NONBLOCK|EFD_CLOEXEC);
return fd >= 0; return fd >= 0;
} }
......
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