Hacker News new | ask | show | jobs
by labawi 1625 days ago
Normally, the pid and fd could be reused, so you should either make it a known unique path and verify it's still the same, lock the pid via some means (not sure if and how it's possible), or use another technique.