mirror of https://github.com/deavmi/river
PipeStream
- Removed override for `close()` as `FDStream` can handle it
This commit is contained in:
parent
a3e0bb8f7b
commit
e499915c81
|
@ -146,26 +146,6 @@ public class PipeStream : FDStream
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes both pipe pairs
|
||||
*/
|
||||
public override void close()
|
||||
{
|
||||
version(Posix)
|
||||
{
|
||||
import core.sys.posix.unistd : close;
|
||||
|
||||
// TODO: Do something with the error code of both calls to `close`
|
||||
close(readEndFd);
|
||||
close(writeEndFd);
|
||||
}
|
||||
else
|
||||
{
|
||||
pragma(msg, "PipeStream: The close() call is not implemented for your platform");
|
||||
static assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
public override ulong write(byte[] fromArray)
|
||||
{
|
||||
version(Posix)
|
||||
|
|
Loading…
Reference in New Issue