mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
Remove pipe file during cleanup
This commit is contained in:
parent
a5d73ba07e
commit
51c264d901
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue