Fix makefile and fifo path
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
int main() {
|
||||
// Change the root of the process so it doesn't have access to anything else.
|
||||
chroot("/opt/djumbai/");
|
||||
const char *message_queue_path = "fifos/message_queue";
|
||||
const char *message_queue_path = "/opt/djumbai/fifos/message_queue";
|
||||
|
||||
if (access(message_queue_path, F_OK) != -1) {
|
||||
// FIFO exists, delete it
|
||||
|
||||
@@ -13,7 +13,7 @@ int main() {
|
||||
|
||||
// Open the FIFO for writing
|
||||
chroot("/opt/djumbai/");
|
||||
const char *send_fifo_path = "fifos/send_fifo";
|
||||
const char *send_fifo_path = "/opt/djumbai/fifos/send_fifo";
|
||||
if (access(send_fifo_path, F_OK) != -1) {
|
||||
// FIFO exists, delete it
|
||||
if (unlink(send_fifo_path) == -1) {
|
||||
|
||||
Reference in New Issue
Block a user