Skip to content

Commit

Permalink
daemon: Prevent new daemon created on same machine
Browse files Browse the repository at this point in the history
Signed-off-by: andv <[email protected]>
  • Loading branch information
duvanan13 committed Jul 6, 2024
1 parent a30c491 commit b95d048
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/daemon/dlt-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,12 +1606,11 @@ static int dlt_daemon_init_fifo(DltDaemonLocal *daemon_local)
return -1;
} /* if */

const char* nameDir = "/tmp";
int dir_fd;
dir_fd = open(nameDir, O_RDONLY);
dir_fd = open(dltFifoBaseDir, O_RDONLY);
if (dir_fd == -1) {
dlt_vlog(LOG_WARNING, "Directory %s of fifo cannot be opened (%s)!\n",
nameDir, strerror(errno));
dltFifoBaseDir, strerror(errno));
return -1;
}

Expand Down

0 comments on commit b95d048

Please sign in to comment.