Small mod to creating the audio pipe

This commit is contained in:
Mike Brady
2020-06-06 10:53:08 +01:00
parent 2d7d8e161e
commit 346595386b
+4 -2
View File
@@ -120,10 +120,12 @@ static int init(int argc, char **argv) {
pipename = strdup(argv[0]);
// here, create the pipe
mode_t oldumask = umask(000);
if (mkfifo(pipename, 0644) && errno != EEXIST)
die("Could not create output pipe \"%s\"", pipename);
die("Could not create audio pipe \"%s\"", pipename);
umask(oldumask);
debug(1, "Pipename is \"%s\"", pipename);
debug(1, "audio pipe name is \"%s\"", pipename);
return 0;
}