diff options
| author | 2006-05-06 15:31:52 +0000 | |
|---|---|---|
| committer | 2006-05-06 15:31:52 +0000 | |
| commit | 2b3be48832e2b926110abe185d1ba79d0ce64e00 (patch) | |
| tree | a9b329dc4fbb57f424d58daa9467a65739eb89c0 /src/users.cpp | |
| parent | Checks for negative fd's when adding them to the socketengine so we can gener... (diff) | |
| download | inspircd++-2b3be48832e2b926110abe185d1ba79d0ce64e00.tar.gz inspircd++-2b3be48832e2b926110abe185d1ba79d0ce64e00.tar.bz2 inspircd++-2b3be48832e2b926110abe185d1ba79d0ce64e00.zip | |
Ignore EAGAIN when write()ing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3931 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 42816932f..249b789e9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -416,7 +416,8 @@ void userrec::FlushWriteBuf() int n_sent = write(this->fd,tb,this->sendq.length()); if (n_sent == -1) { - this->SetWriteError(strerror(errno)); + if (errno != EAGAIN) + this->SetWriteError(strerror(errno)); } else { |
