Create fifo if it doesn't exist already

This commit is contained in:
Isaac Connor 2021-03-01 16:43:51 -05:00
parent 9302c9506e
commit b09fe1d17c
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ Fifo::~Fifo() {
close();
}
bool Fifo::open() {
fifo_create_if_missing(path.c_str());
if (!on_blocking_abort) {
if ( (outfile = fopen(path.c_str(), "wb")) == nullptr ) {
Error("Can't open %s for writing: %s", path.c_str(), strerror(errno));