src/cxx_supportlib/ServerKit/FdSinkChannel.h in passenger-5.0.23 vs src/cxx_supportlib/ServerKit/FdSinkChannel.h in passenger-5.0.24
- old
+ new
@@ -52,10 +52,10 @@
// Data
ssize_t ret;
do {
ret = ::write(watcher.fd, buffer.start, buffer.size());
- } while (ret == -1 && errno == EAGAIN);
+ } while (ret == -1 && errno == EINTR);
if (ret == (ssize_t) buffer.size()) {
return Result(ret, false);
} else if (ret >= 0) {
ev_io_start(ctx->libev->getLoop(), &watcher);
stop();