diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/pollevent.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/pollevent.cc b/src/base/pollevent.cc index 67708c129..cb44d8728 100644 --- a/src/base/pollevent.cc +++ b/src/base/pollevent.cc @@ -213,13 +213,13 @@ PollQueue::setupAsyncIO(int fd, bool set) else flags &= ~(FASYNC); - if (fcntl(fd, F_SETFL, flags) == -1) - panic("Could not set up async IO"); - if (set) { if (fcntl(fd, F_SETOWN, getpid()) == -1) panic("Could not set up async IO"); } + + if (fcntl(fd, F_SETFL, flags) == -1) + panic("Could not set up async IO"); } void |