News for hackers. Stuff that matters.
Re:Show HN: A pure bash web server. No netcat, socat, etc. by Klasiaster on Tuesday January 04, 2022 @05:21PM (#29801475)
It's also useful for signaling between processes to have them continue doing something as long as this proc path exists (the fd can also just be backed with >/dev/null instead of a real file that needs to be removed)
Re:Show HN: A pure bash web server. No netcat, socat, etc. by labawi on Thursday January 06, 2022 @03:55PM (#29830019)
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.
Re:Show HN: A pure bash web server. No netcat, socat, etc. by dzove855 on Wednesday January 05, 2022 @03:10AM (#29806418)
For creating some kind IPC, i would create a named fifo or even use coproc (see man bash)