Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/rtapi/uspace_rtapi_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ static int
get_fifo_path(char *buf, size_t bufsize) {
const char *s = get_fifo_path();
if(!s) return -1;
snprintf(buf, bufsize, "%s", s);
*buf=0;
snprintf(buf+1, bufsize-1, "%s", s);
return 0;
}

Expand Down Expand Up @@ -564,7 +565,6 @@ int main(int argc, char **argv) {
if(result != 0) { perror("listen"); exit(1); }
setsid(); // create a new session if we can...
result = master(fd, args);
unlink(get_fifo_path());
return result;
} else if(errno == EADDRINUSE) {
struct timeval t0, t1;
Expand All @@ -578,7 +578,6 @@ int main(int argc, char **argv) {
gettimeofday(&t1, NULL);
}
if(result < 0 && errno == ECONNREFUSED) {
unlink(get_fifo_path());
fprintf(stderr, "Waited 3 seconds for master. giving up.\n");
close(fd);
goto become_master;
Expand Down
Loading