From 346595386b3873a7e61668ac9182a273d81cbeb5 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sat, 6 Jun 2020 10:53:08 +0100 Subject: [PATCH] Small mod to creating the audio pipe --- audio_pipe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audio_pipe.c b/audio_pipe.c index 7953dc23..6dedc464 100644 --- a/audio_pipe.c +++ b/audio_pipe.c @@ -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; }