9f5f1f669df46941c2a7c25005bd692f023f1e1c
One test recording produced two half-files: the game in one, the microphone in the other. Two daemons were alive at once, each with its own OBS, and only one of them won the game's capture hook and its audio. Any launch path can start a daemon (the app when it cannot reach the pipe, the tray, a manual run) and the pipe server accepts a second instance without complaint, so nothing stopped the second copy. The daemon now claims a lock file in its configuration directory before booting OBS. On Windows the file is opened with a share mode of zero, so a second open fails with a sharing violation; on Unix an exclusive flock does the same. The loser logs which process holds the lock and exits, leaving the running recorder alone. Closing the handle releases the lock, so a crash does not leave the machine without a recorder.
Languages
Rust
100%