system/FileDescriptor: remove bogus assertions
This commit is contained in:
parent
a5760670ef
commit
f677f42be7
@ -60,8 +60,6 @@
|
||||
bool
|
||||
FileDescriptor::Open(const char *pathname, int flags)
|
||||
{
|
||||
assert(!IsDefined());
|
||||
|
||||
fd = ::open(pathname, flags);
|
||||
return IsDefined();
|
||||
}
|
||||
@ -125,8 +123,6 @@ FileDescriptor::SetBlocking()
|
||||
bool
|
||||
FileDescriptor::CreateEventFD(unsigned initval)
|
||||
{
|
||||
assert(!IsDefined());
|
||||
|
||||
fd = ::eventfd(initval, EFD_NONBLOCK|EFD_CLOEXEC);
|
||||
return fd >= 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user