Merge pull request #110 from BenjaminSchaaf/process

Fix pipe writing
This commit is contained in:
Sönke Ludwig 2019-06-02 09:13:26 +02:00 committed by GitHub
commit e7bf50ea2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ final class PosixEventDriverPipes(Loop : PosixEventLoop) : EventDriverPipes {
auto cb = slot.writeCallback;
slot.writeCallback = null;
slot.writeBuffer = null;
cb(pipe, IOStatus.error, slot.bytesRead);
cb(pipe, status, slot.bytesWritten);
}
ssize_t ret = () @trusted { return write(cast(int)pipe, slot.writeBuffer.ptr, min(slot.writeBuffer.length, int.max)); } ();