Create fifo if it doesn't exist already
This commit is contained in:
parent
9302c9506e
commit
b09fe1d17c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue