Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Running a second instance of oguri replaces existing IPC socket #20

Open
vilhalmer opened this issue Dec 27, 2019 · 0 comments
Open

Running a second instance of oguri replaces existing IPC socket #20

vilhalmer opened this issue Dec 27, 2019 · 0 comments

Comments

@vilhalmer
Copy link
Owner

This is a pretty uncommon thing to do, but it can happen for instance when testing a nested compositor. It could also happen by accident. Two options:

  • When creating the socket, attempt to connect to it first to determine if an oguri already lives there. If so, disable the new instance's IPC. (Can't just check the file exists, could get stuck.)
  • Add the pid to the filename, at the cost of the path no longer being predictable.

The second option could be improved by a configurable path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant