Remove pipe file during cleanup

This commit is contained in:
Vinyl Darkscratch 2018-03-07 00:41:26 -08:00
parent a5d73ba07e
commit 51c264d901

View file

@ -24,6 +24,7 @@
#include <sys/inotify.h> #include <sys/inotify.h>
#endif #endif
#include <unistd.h> #include <unistd.h>
#include <stdio.h>
#else #else
#error "Operating system not detected." #error "Operating system not detected."
#endif #endif
@ -43,6 +44,7 @@ static volatile int message_len = 0;
void cleanup_pipe() void cleanup_pipe()
{ {
unlink(PIPE_PATH); unlink(PIPE_PATH);
remove(PIPE_PATH);
} }
#endif #endif